From: Alyssa Rosenzweig Date: Tue, 4 Feb 2020 14:34:11 +0000 (-0500) Subject: pan/midgard: Use dummy tag for empty shaders X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d208212f80effe4e2831fa408e976099317230b0;p=mesa.git pan/midgard: Use dummy tag for empty shaders Fixes INSTR_INVALID_ENC in dEQP-GLES31.functional.compute.basic.empty Signed-off-by: Alyssa Rosenzweig Part-of: --- 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);