broadcom/compiler: track if a shader has control barriers in prog_data

Reviewed-by: Alejandro Piñeiro <apinheiro@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10541>
This commit is contained in:
Iago Toral Quiroga
2021-04-28 12:17:46 +02:00
committed by Marge Bot
parent 2e0f6e5705
commit f514280524
2 changed files with 3 additions and 0 deletions

View File

@@ -833,6 +833,8 @@ struct v3d_prog_data {
bool single_seg;
bool tmu_dirty_rcl;
bool has_control_barrier;
};
struct v3d_vs_prog_data {

View File

@@ -812,6 +812,7 @@ v3d_set_prog_data(struct v3d_compile *c,
prog_data->single_seg = !c->last_thrsw;
prog_data->spill_size = c->spill_size;
prog_data->tmu_dirty_rcl = c->tmu_dirty_rcl;
prog_data->has_control_barrier = c->s->info.uses_control_barrier;
v3d_set_prog_data_uniforms(c, prog_data);