pan/midgard: Use dummy tag for empty shaders

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>
This commit is contained in:
Alyssa Rosenzweig 2020-02-04 09:34:11 -05:00
parent b2cab6b6db
commit d208212f80

View 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);