diff options
author | Christoph Bumiller <[email protected]> | 2011-10-20 23:36:15 +0200 |
---|---|---|
committer | Christoph Bumiller <[email protected]> | 2011-10-21 23:00:40 +0200 |
commit | 27b0c9d51300712f3b5d4af6cc20d53fcf9c8c46 (patch) | |
tree | f70e7edbc179230002b5322a015e44a368043ba8 /src/gallium/state_trackers/d3d1x/gd3d11 | |
parent | bb0482a55bbebfdd4b06954fbfacf5a57a04b1f3 (diff) |
d3d1x: set primitive restart in the correct draw calls
Diffstat (limited to 'src/gallium/state_trackers/d3d1x/gd3d11')
-rw-r--r-- | src/gallium/state_trackers/d3d1x/gd3d11/d3d11_context.h | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/gallium/state_trackers/d3d1x/gd3d11/d3d11_context.h b/src/gallium/state_trackers/d3d1x/gd3d11/d3d11_context.h index 6385fc123ca..4055c549d85 100644 --- a/src/gallium/state_trackers/d3d1x/gd3d11/d3d11_context.h +++ b/src/gallium/state_trackers/d3d1x/gd3d11/d3d11_context.h @@ -742,7 +742,8 @@ struct GalliumD3D10Device : public GalliumD3D10ScreenImpl<threadsafe> info.max_index = ~0; info.start_instance = 0; info.instance_count = 1; - info.primitive_restart = FALSE; + info.primitive_restart = TRUE; + info.restart_index = strip_cut_index; pipe->draw_vbo(pipe, &info); } @@ -765,8 +766,7 @@ struct GalliumD3D10Device : public GalliumD3D10ScreenImpl<threadsafe> info.max_index = ~0; info.start_instance = 0; info.instance_count = 1; - info.primitive_restart = TRUE; - info.restart_index = strip_cut_index; + info.primitive_restart = FALSE; pipe->draw_vbo(pipe, &info); } @@ -792,7 +792,8 @@ struct GalliumD3D10Device : public GalliumD3D10ScreenImpl<threadsafe> info.max_index = ~0; info.start_instance = start_instance_location; info.instance_count = instance_count; - info.primitive_restart = FALSE; + info.primitive_restart = TRUE; + info.restart_index = strip_cut_index; pipe->draw_vbo(pipe, &info); } @@ -817,8 +818,7 @@ struct GalliumD3D10Device : public GalliumD3D10ScreenImpl<threadsafe> info.max_index = ~0; info.start_instance = start_instance_location; info.instance_count = instance_count; - info.primitive_restart = TRUE; - info.restart_index = strip_cut_index; + info.primitive_restart = FALSE; pipe->draw_vbo(pipe, &info); } @@ -862,7 +862,8 @@ struct GalliumD3D10Device : public GalliumD3D10ScreenImpl<threadsafe> info.max_index = ~0; info.start_instance = 0; info.instance_count = data.instance_count; - info.primitive_restart = FALSE; + info.primitive_restart = TRUE; + info.restart_index = strip_cut_index; pipe->draw_vbo(pipe, &info); } @@ -893,8 +894,7 @@ struct GalliumD3D10Device : public GalliumD3D10ScreenImpl<threadsafe> info.max_index = ~0; info.start_instance = 0; info.instance_count = data.instance_count; - info.primitive_restart = TRUE; - info.restart_index = strip_cut_index; + info.primitive_restart = FALSE; pipe->draw_vbo(pipe, &info); } |