summaryrefslogtreecommitdiff
path: root/lib/mesa/src/gallium/drivers/v3d
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2020-09-03 06:45:04 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2020-09-03 06:45:04 +0000
commit503988bc5f236336c432bb16698c4687e482ce16 (patch)
tree23734db9fb1a7017821b1491d76138b635687252 /lib/mesa/src/gallium/drivers/v3d
parent526c85132de0a63a11dddc6e59ac67c94d2e0959 (diff)
Import Mesa 20.1.7
Diffstat (limited to 'lib/mesa/src/gallium/drivers/v3d')
-rw-r--r--lib/mesa/src/gallium/drivers/v3d/v3dx_rcl.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/mesa/src/gallium/drivers/v3d/v3dx_rcl.c b/lib/mesa/src/gallium/drivers/v3d/v3dx_rcl.c
index 0582e9aba..739088ec3 100644
--- a/lib/mesa/src/gallium/drivers/v3d/v3dx_rcl.c
+++ b/lib/mesa/src/gallium/drivers/v3d/v3dx_rcl.c
@@ -440,6 +440,13 @@ v3d_rcl_emit_generic_per_tile_list(struct v3d_job *job, int layer)
fmt.primitive_type = LIST_TRIANGLES;
}
+#if V3D_VERSION >= 41
+ /* PTB assumes that value to be 0, but hw will not set it. */
+ cl_emit(cl, SET_INSTANCEID, set) {
+ set.instance_id = 0;
+ }
+#endif
+
cl_emit(cl, BRANCH_TO_IMPLICIT_TILE_LIST, branch);
v3d_rcl_emit_stores(job, cl, layer);