mirror of
https://github.com/elwrcl/intel-hard-graphics.git
synced 2026-11-01 03:18:02 +03:00
nine: Gallium Nine'i Mesa 26.x'e forward-port et
Nine Mesa 25.2'de silindi. Bu commit onu 26.2 agacina geri getiriyor:
src/gallium/frontends/nine, src/gallium/targets/d3dadapter9, D3D9 ve
d3dadapter basliklari, meson entegrasyonu ve driconf secenekleri.
Silinmesinden sonra gallium'da degisen ve uyum gerektiren yerler:
- mesa_shader_stage, enum pipe_shader_type'in yerini aldi
- pipe_surface de-pointerize edildi, create_surface kalkti
- u_upload_data/alloc artik referans vermiyor; _ref varyantlarina gecildi
- threaded_context kullanici sabit tamponlarini yuklemiyor (MR 36715),
tc_set_constant_buffer'da assert(!cb->user_buffer) var. SWVP ve
fixed-function yollari icin nine_upload_constant_buffer() eklendi.
- driParseConfigFiles struct API'sine gecti
Ayrica D3D9'un ugradigi ama GL frontend'inin hic gecmedigi uc yolda
surucu hatasi cikti; ucu de burada:
crocus_query.c PIPE_QUERY_GPU_FINISHED ele alinmiyordu
crocus_clear.c clear_render_target gelen pipe_surface'i crocus_surface'e
cast edip ->view okuyordu; Nine kendi surface'ini
uretiyor, format crocus_format_for_usage ile yeniden
turetiliyor
tgsi_to_nir.c TXD'de ddx/ddy bilesen sayisi kirpilmiyordu
Gercek donanimda dogrulandi (8086:0166, crocus, wine 11.0 +
wine-nine-standalone): Max Payne 2, The Witcher EE, Fallout New Vegas,
Warband, L4D1, PAYDAY: The Heist calisiyor.
Co-Authored-By: Claude Opus 5 <[email protected]>
This commit is contained in:
109 files changed
+43221
-9
No files matched your search
@@ -0,0 +1,130 @@
|
||||
/*
|
||||
* Copyright 2011 Joakim Sindholt <[email protected]>
|
||||
* SPDX-License-Identifier: MIT
|
||||
*/
|
||||
|
||||
#ifndef _NINE_ADAPTER9_H_
|
||||
#define _NINE_ADAPTER9_H_
|
||||
|
||||
#include "iunknown.h"
|
||||
|
||||
#include "d3dadapter/d3dadapter9.h"
|
||||
|
||||
struct pipe_screen;
|
||||
struct pipe_resource;
|
||||
|
||||
struct d3dadapter9_context
|
||||
{
|
||||
struct pipe_screen *hal, *ref;
|
||||
D3DADAPTER_IDENTIFIER9 identifier;
|
||||
BOOL linear_framebuffer;
|
||||
BOOL throttling;
|
||||
int throttling_value;
|
||||
int vblank_mode;
|
||||
BOOL thread_submit;
|
||||
BOOL discard_delayed_release;
|
||||
BOOL tearfree_discard;
|
||||
int csmt_force;
|
||||
BOOL dynamic_texture_workaround;
|
||||
BOOL shader_inline_constants;
|
||||
int memfd_virtualsizelimit;
|
||||
int override_vram_size;
|
||||
BOOL force_emulation;
|
||||
|
||||
void (*destroy)( struct d3dadapter9_context *ctx );
|
||||
};
|
||||
|
||||
struct NineAdapter9
|
||||
{
|
||||
struct NineUnknown base;
|
||||
|
||||
struct d3dadapter9_context *ctx;
|
||||
};
|
||||
static inline struct NineAdapter9 *
|
||||
NineAdapter9( void *data )
|
||||
{
|
||||
return (struct NineAdapter9 *)data;
|
||||
}
|
||||
|
||||
HRESULT
|
||||
NineAdapter9_new( struct d3dadapter9_context *pCTX,
|
||||
struct NineAdapter9 **ppOut );
|
||||
|
||||
HRESULT
|
||||
NineAdapter9_ctor( struct NineAdapter9 *This,
|
||||
struct NineUnknownParams *pParams,
|
||||
struct d3dadapter9_context *pCTX );
|
||||
|
||||
void
|
||||
NineAdapter9_dtor( struct NineAdapter9 *This );
|
||||
|
||||
HRESULT NINE_WINAPI
|
||||
NineAdapter9_GetAdapterIdentifier( struct NineAdapter9 *This,
|
||||
DWORD Flags,
|
||||
D3DADAPTER_IDENTIFIER9 *pIdentifier );
|
||||
|
||||
HRESULT NINE_WINAPI
|
||||
NineAdapter9_CheckDeviceType( struct NineAdapter9 *This,
|
||||
D3DDEVTYPE DevType,
|
||||
D3DFORMAT AdapterFormat,
|
||||
D3DFORMAT BackBufferFormat,
|
||||
BOOL bWindowed );
|
||||
|
||||
HRESULT NINE_WINAPI
|
||||
NineAdapter9_CheckDeviceFormat( struct NineAdapter9 *This,
|
||||
D3DDEVTYPE DeviceType,
|
||||
D3DFORMAT AdapterFormat,
|
||||
DWORD Usage,
|
||||
D3DRESOURCETYPE RType,
|
||||
D3DFORMAT CheckFormat );
|
||||
|
||||
HRESULT NINE_WINAPI
|
||||
NineAdapter9_CheckDeviceMultiSampleType( struct NineAdapter9 *This,
|
||||
D3DDEVTYPE DeviceType,
|
||||
D3DFORMAT SurfaceFormat,
|
||||
BOOL Windowed,
|
||||
D3DMULTISAMPLE_TYPE MultiSampleType,
|
||||
DWORD *pQualityLevels );
|
||||
|
||||
HRESULT NINE_WINAPI
|
||||
NineAdapter9_CheckDepthStencilMatch( struct NineAdapter9 *This,
|
||||
D3DDEVTYPE DeviceType,
|
||||
D3DFORMAT AdapterFormat,
|
||||
D3DFORMAT RenderTargetFormat,
|
||||
D3DFORMAT DepthStencilFormat );
|
||||
|
||||
HRESULT NINE_WINAPI
|
||||
NineAdapter9_CheckDeviceFormatConversion( struct NineAdapter9 *This,
|
||||
D3DDEVTYPE DeviceType,
|
||||
D3DFORMAT SourceFormat,
|
||||
D3DFORMAT TargetFormat );
|
||||
|
||||
HRESULT NINE_WINAPI
|
||||
NineAdapter9_GetDeviceCaps( struct NineAdapter9 *This,
|
||||
D3DDEVTYPE DeviceType,
|
||||
D3DCAPS9 *pCaps );
|
||||
|
||||
HRESULT NINE_WINAPI
|
||||
NineAdapter9_CreateDevice( struct NineAdapter9 *This,
|
||||
UINT RealAdapter,
|
||||
D3DDEVTYPE DeviceType,
|
||||
HWND hFocusWindow,
|
||||
DWORD BehaviorFlags,
|
||||
D3DPRESENT_PARAMETERS *pPresentationParameters,
|
||||
IDirect3D9 *pD3D9,
|
||||
ID3DPresentGroup *pPresentationGroup,
|
||||
IDirect3DDevice9 **ppReturnedDeviceInterface );
|
||||
|
||||
HRESULT NINE_WINAPI
|
||||
NineAdapter9_CreateDeviceEx( struct NineAdapter9 *This,
|
||||
UINT RealAdapter,
|
||||
D3DDEVTYPE DeviceType,
|
||||
HWND hFocusWindow,
|
||||
DWORD BehaviorFlags,
|
||||
D3DPRESENT_PARAMETERS *pPresentationParameters,
|
||||
D3DDISPLAYMODEEX *pFullscreenDisplayMode,
|
||||
IDirect3D9Ex *pD3D9Ex,
|
||||
ID3DPresentGroup *pPresentationGroup,
|
||||
IDirect3DDevice9Ex **ppReturnedDeviceInterface );
|
||||
|
||||
#endif /* _NINE_ADAPTER9_H_ */
|
||||
Reference in new issue
Block a user