pan/mdg: Ensure barrier op is set on texture

Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Reviewed-by: Tomeu Vizoso <tomeu.vizoso@collabora.com>
Fixes: 92c808cd47 ("pan/mdg: eliminate references to ins->texture.op")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6321>
(cherry picked from commit 06c31031e7)
This commit is contained in:
Alyssa Rosenzweig 2020-08-13 17:15:11 -04:00 committed by Dylan Baker
parent 7c47874d45
commit 748a7e1a44
2 changed files with 2 additions and 1 deletions

View file

@ -1282,7 +1282,7 @@
"description": "pan/mdg: Ensure barrier op is set on texture",
"nominated": true,
"nomination_type": 1,
"resolution": 0,
"resolution": 1,
"master_sha": null,
"because_sha": "92c808cd475c69841eaaf020505208f286ad38cc"
},

View file

@ -903,6 +903,7 @@ emit_binary_bundle(compiler_context *ctx,
/* Nothing else to pack for barriers */
if (ins->op == TEXTURE_OP_BARRIER) {
ins->texture.cont = ins->texture.last = 1;
ins->texture.op = ins->op;
util_dynarray_append(emission, midgard_texture_word, ins->texture);
return;
}