agx: Assert that barriers are not used in the preamble

It is nonsensical and confuses the hardware.

Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23998>
This commit is contained in:
Alyssa Rosenzweig
2023-06-08 09:35:30 -04:00
committed by Marge Bot
parent 9bf7d14b2c
commit d9bf52e00f
2 changed files with 5 additions and 0 deletions

View File

@@ -378,6 +378,8 @@ typedef struct agx_block {
typedef struct {
nir_shader *nir;
gl_shader_stage stage;
bool is_preamble;
struct list_head blocks; /* list of agx_block */
struct agx_shader_info *out;
struct agx_shader_key *key;