From d208212f80effe4e2831fa408e976099317230b0 Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Tue, 4 Feb 2020 09:34:11 -0500 Subject: 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: --- src/gallium/drivers/panfrost/pan_assemble.c | 4 ++-- 1 file 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); -- cgit v1.2.3