diff options
author | Christoph Bumiller <[email protected]> | 2011-09-17 11:58:05 +0200 |
---|---|---|
committer | Christoph Bumiller <[email protected]> | 2011-09-17 12:09:03 +0200 |
commit | 4a06248281f65d8a653c1bb744947bb6d47fdc9c (patch) | |
tree | 9ff7b72d79b4621964c4af51f86005e170886870 /src/gallium/state_trackers | |
parent | e27d72d6c3ca3512bfea524b8a7b007960841057 (diff) |
d3d1x: set flatshade_first in rasterizer state
D3D10 specifies the first vertex as the leading/provoking one.
Diffstat (limited to 'src/gallium/state_trackers')
-rw-r--r-- | src/gallium/state_trackers/d3d1x/gd3d11/d3d11_context.h | 1 | ||||
-rw-r--r-- | src/gallium/state_trackers/d3d1x/gd3d11/d3d11_screen.h | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/state_trackers/d3d1x/gd3d11/d3d11_context.h b/src/gallium/state_trackers/d3d1x/gd3d11/d3d11_context.h index 1b642db0168..d43fdeab963 100644 --- a/src/gallium/state_trackers/d3d1x/gd3d11/d3d11_context.h +++ b/src/gallium/state_trackers/d3d1x/gd3d11/d3d11_context.h @@ -200,6 +200,7 @@ struct GalliumD3D10Device : public GalliumD3D10ScreenImpl<threadsafe> memset(&rasterizerd, 0, sizeof(rasterizerd)); rasterizerd.gl_rasterization_rules = 1; rasterizerd.cull_face = PIPE_FACE_BACK; + rasterizerd.flatshade_first = 1; rasterizerd.line_width = 1.0f; rasterizerd.point_size = 1.0f; default_rasterizer = pipe->create_rasterizer_state(pipe, &rasterizerd); diff --git a/src/gallium/state_trackers/d3d1x/gd3d11/d3d11_screen.h b/src/gallium/state_trackers/d3d1x/gd3d11/d3d11_screen.h index e824d3f6c92..3674731b1e1 100644 --- a/src/gallium/state_trackers/d3d1x/gd3d11/d3d11_screen.h +++ b/src/gallium/state_trackers/d3d1x/gd3d11/d3d11_screen.h @@ -512,6 +512,7 @@ struct GalliumD3D11ScreenImpl : public GalliumD3D11Screen state.scissor = !!rasterizer_desc->ScissorEnable; state.multisample = !!rasterizer_desc->MultisampleEnable; state.line_smooth = !!rasterizer_desc->AntialiasedLineEnable; + state.flatshade_first = 1; state.line_width = 1.0f; state.point_size = 1.0f; |