aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/panfrost
diff options
context:
space:
mode:
authorAlyssa Rosenzweig <[email protected]>2020-02-04 09:34:11 -0500
committerAlyssa Rosenzweig <[email protected]>2020-02-16 09:16:47 -0500
commitd208212f80effe4e2831fa408e976099317230b0 (patch)
treef542494a74fc20a3d253d92086ff21f20e97c669 /src/gallium/drivers/panfrost
parentb2cab6b6db4244cb95abb5bf13734360df8391ea (diff)
pan/midgard: Use dummy tag for empty shaders
Fixes INSTR_INVALID_ENC in dEQP-GLES31.functional.compute.basic.empty Signed-off-by: Alyssa Rosenzweig <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3835>
Diffstat (limited to 'src/gallium/drivers/panfrost')
-rw-r--r--src/gallium/drivers/panfrost/pan_assemble.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/drivers/panfrost/pan_assemble.c b/src/gallium/drivers/panfrost/pan_assemble.c
index 31156c48fd5..d6b63219c3a 100644
--- a/src/gallium/drivers/panfrost/pan_assemble.c
+++ b/src/gallium/drivers/panfrost/pan_assemble.c
@@ -83,8 +83,8 @@ panfrost_shader_compile(
memcpy(state->bo->cpu, dst, size);
meta->shader = state->bo->gpu | program.first_tag;
} else {
- /* no shader */
- meta->shader = 0x0;
+ /* No shader. Use dummy tag to avoid INSTR_INVALID_ENC */
+ meta->shader = 0x0 | 1;
}
util_dynarray_fini(&program.compiled);