Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Erik Faye-Lund
mesa
Commits
70c313d3
Commit
70c313d3
authored
Sep 03, 2020
by
Louis-Francis Ratté-Boulianne
Committed by
Erik Faye-Lund
Oct 28, 2020
Browse files
d3d12: Adjust polygon offset units
parent
179e8745
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/gallium/drivers/d3d12/d3d12_pipeline_state.cpp
View file @
70c313d3
...
...
@@ -249,7 +249,7 @@ create_gfx_pipeline_state(struct d3d12_context *ctx)
pso_desc
.
RasterizerState
.
CullMode
=
D3D12_CULL_MODE_NONE
;
if
(
depth_bias
(
state
->
rast
,
reduced_prim
))
{
pso_desc
.
RasterizerState
.
DepthBias
=
state
->
rast
->
base
.
offset_units
;
pso_desc
.
RasterizerState
.
DepthBias
=
state
->
rast
->
base
.
offset_units
*
2
;
pso_desc
.
RasterizerState
.
DepthBiasClamp
=
state
->
rast
->
base
.
offset_clamp
;
pso_desc
.
RasterizerState
.
SlopeScaledDepthBias
=
state
->
rast
->
base
.
offset_scale
;
}
...
...
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