mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 05:08:08 +02:00
broadcom/compiler: don't use nir_src_is_dynamically_uniform
Now that we have divergence analysis we should use that. Reviewed-by: Juan A. Suarez <jasuarez@igalia.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10723>
This commit is contained in:
parent
838316dd5b
commit
0235ed18a7
1 changed files with 4 additions and 2 deletions
|
|
@ -2466,8 +2466,10 @@ emit_store_output_gs(struct v3d_compile *c, nir_intrinsic_instr *instr)
|
|||
* different offsets in the VPM and we need to use the scatter write
|
||||
* instruction to have a different offset for each lane.
|
||||
*/
|
||||
vir_VPM_WRITE_indirect(c, val, offset,
|
||||
nir_src_is_dynamically_uniform(instr->src[1]));
|
||||
bool is_uniform_offset =
|
||||
!vir_in_nonuniform_control_flow(c) &&
|
||||
!nir_src_is_divergent(instr->src[1]);
|
||||
vir_VPM_WRITE_indirect(c, val, offset, is_uniform_offset);
|
||||
|
||||
if (vir_in_nonuniform_control_flow(c)) {
|
||||
struct qinst *last_inst =
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue