Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
775812ab
Commit
775812ab
authored
Mar 20, 2022
by
Zebediah Figura
Committed by
Alexandre Julliard
Jan 26, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3d11: Report support for shader stencil export if available.
parent
5efd4b64
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
15 additions
and
1 deletion
+15
-1
device.c
dlls/d3d11/device.c
+10
-1
adapter_gl.c
dlls/wined3d/adapter_gl.c
+1
-0
adapter_vk.c
dlls/wined3d/adapter_vk.c
+1
-0
directx.c
dlls/wined3d/directx.c
+1
-0
wined3d_private.h
dlls/wined3d/wined3d_private.h
+1
-0
wined3d.h
include/wine/wined3d.h
+1
-0
No files found.
dlls/d3d11/device.c
View file @
775812ab
...
...
@@ -4171,7 +4171,16 @@ static HRESULT STDMETHODCALLTYPE d3d11_device_CheckFeatureSupport(ID3D11Device2
return
E_INVALIDARG
;
}
options
->
PSSpecifiedStencilRefSupported
=
FALSE
;
wined3d_mutex_lock
();
hr
=
wined3d_device_get_device_caps
(
device
->
wined3d_device
,
&
wined3d_caps
);
wined3d_mutex_unlock
();
if
(
FAILED
(
hr
))
{
WARN
(
"Failed to get device caps, hr %#lx.
\n
"
,
hr
);
return
hr
;
}
options
->
PSSpecifiedStencilRefSupported
=
wined3d_caps
.
stencil_export
;
options
->
TypedUAVLoadAdditionalFormats
=
FALSE
;
options
->
ROVsSupported
=
FALSE
;
options
->
ConservativeRasterizationTier
=
D3D11_CONSERVATIVE_RASTERIZATION_NOT_SUPPORTED
;
...
...
dlls/wined3d/adapter_gl.c
View file @
775812ab
...
...
@@ -5196,6 +5196,7 @@ static void wined3d_adapter_gl_init_d3d_info(struct wined3d_adapter_gl *adapter_
d3d_info
->
shader_output_interpolation
=
!!
(
shader_caps
.
wined3d_caps
&
WINED3D_SHADER_CAP_OUTPUT_INTERPOLATION
);
d3d_info
->
frag_coord_correction
=
!!
gl_info
->
supported
[
ARB_FRAGMENT_COORD_CONVENTIONS
];
d3d_info
->
viewport_array_index_any_shader
=
!!
gl_info
->
supported
[
ARB_SHADER_VIEWPORT_LAYER_ARRAY
];
d3d_info
->
stencil_export
=
!!
gl_info
->
supported
[
ARB_SHADER_STENCIL_EXPORT
];
d3d_info
->
texture_npot
=
!!
gl_info
->
supported
[
ARB_TEXTURE_NON_POWER_OF_TWO
];
d3d_info
->
texture_npot_conditional
=
gl_info
->
supported
[
WINED3D_GL_NORMALIZED_TEXRECT
]
||
gl_info
->
supported
[
ARB_TEXTURE_RECTANGLE
];
...
...
dlls/wined3d/adapter_vk.c
View file @
775812ab
...
...
@@ -2306,6 +2306,7 @@ static void wined3d_adapter_vk_init_d3d_info(struct wined3d_adapter_vk *adapter_
d3d_info
->
shader_double_precision
=
!!
(
shader_caps
.
wined3d_caps
&
WINED3D_SHADER_CAP_DOUBLE_PRECISION
);
d3d_info
->
shader_output_interpolation
=
!!
(
shader_caps
.
wined3d_caps
&
WINED3D_SHADER_CAP_OUTPUT_INTERPOLATION
);
d3d_info
->
viewport_array_index_any_shader
=
false
;
/* VK_EXT_shader_viewport_index_layer */
d3d_info
->
stencil_export
=
vk_info
->
supported
[
WINED3D_VK_EXT_SHADER_STENCIL_EXPORT
];
d3d_info
->
texture_npot
=
true
;
d3d_info
->
texture_npot_conditional
=
true
;
d3d_info
->
normalized_texrect
=
false
;
...
...
dlls/wined3d/directx.c
View file @
775812ab
...
...
@@ -2709,6 +2709,7 @@ HRESULT CDECL wined3d_get_device_caps(const struct wined3d_adapter *adapter,
caps
->
shader_double_precision
=
d3d_info
->
shader_double_precision
;
caps
->
viewport_array_index_any_shader
=
d3d_info
->
viewport_array_index_any_shader
;
caps
->
stencil_export
=
d3d_info
->
stencil_export
;
caps
->
max_feature_level
=
d3d_info
->
feature_level
;
...
...
dlls/wined3d/wined3d_private.h
View file @
775812ab
...
...
@@ -221,6 +221,7 @@ struct wined3d_d3d_info
uint32_t
shader_output_interpolation
:
1
;
uint32_t
frag_coord_correction
:
1
;
uint32_t
viewport_array_index_any_shader
:
1
;
uint32_t
stencil_export
:
1
;
uint32_t
texture_npot
:
1
;
uint32_t
texture_npot_conditional
:
1
;
uint32_t
normalized_texrect
:
1
;
...
...
include/wine/wined3d.h
View file @
775812ab
...
...
@@ -2000,6 +2000,7 @@ struct wined3d_caps
BOOL
shader_double_precision
;
BOOL
viewport_array_index_any_shader
;
BOOL
stencil_export
;
enum
wined3d_feature_level
max_feature_level
;
};
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment