summaryrefslogtreecommitdiffstats
path: root/src/gallium
diff options
context:
space:
mode:
authorRoland Scheidegger <[email protected]>2015-12-03 01:19:52 +0100
committerRoland Scheidegger <[email protected]>2015-12-04 03:42:19 +0100
commit5ea5b169e95358ec47615f43941e6949d4a7ad43 (patch)
treef32f65a5e94306ff3515c0d0c85f8f64f1e7a361 /src/gallium
parentddaf8d7b10c57cc44ed0d69554e54b3573007315 (diff)
softpipe: use provoking vertex for layer
Same as for llvmpipe, albeit softpipe only really handles multiple layers, not multiple viewports/scissors. Reviewed-by: Brian Paul <[email protected]> Reviewed-by: Jose Fonseca <[email protected]>
Diffstat (limited to 'src/gallium')
-rw-r--r--src/gallium/drivers/softpipe/sp_setup.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/drivers/softpipe/sp_setup.c b/src/gallium/drivers/softpipe/sp_setup.c
index ff3cb9fe5e1..973803e909d 100644
--- a/src/gallium/drivers/softpipe/sp_setup.c
+++ b/src/gallium/drivers/softpipe/sp_setup.c
@@ -840,7 +840,7 @@ sp_setup_tri(struct setup_context *setup,
setup->span.right[1] = 0;
/* setup->span.z_mode = tri_z_mode( setup->ctx ); */
if (setup->softpipe->layer_slot > 0) {
- layer = *(unsigned *)v1[setup->softpipe->layer_slot];
+ layer = *(unsigned *)setup->vprovoke[setup->softpipe->layer_slot];
layer = MIN2(layer, setup->max_layer);
}
setup->quad[0].input.layer = layer;
@@ -1127,7 +1127,7 @@ sp_setup_line(struct setup_context *setup,
setup->quad[0].input.x0 = setup->quad[0].input.y0 = -1;
setup->quad[0].inout.mask = 0x0;
if (setup->softpipe->layer_slot > 0) {
- layer = *(unsigned *)v1[setup->softpipe->layer_slot];
+ layer = *(unsigned *)setup->vprovoke[setup->softpipe->layer_slot];
layer = MIN2(layer, setup->max_layer);
}
setup->quad[0].input.layer = layer;