pan/midgard: Use dummy tag for empty shaders
authorAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Tue, 4 Feb 2020 14:34:11 +0000 (09:34 -0500)
committerAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Sun, 16 Feb 2020 14:16:47 +0000 (09:16 -0500)
Fixes INSTR_INVALID_ENC in dEQP-GLES31.functional.compute.basic.empty

Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3835>

src/gallium/drivers/panfrost/pan_assemble.c

index 31156c48fd5b04c779935a6b707aa9af55f67f1f..d6b63219c3a23fef3fcf6ef086c70fed666e092f 100644 (file)
@@ -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);