brw: remove uniform from opt_offsets

Those are for push constants, no point in doing that because :
   - there is no HW constant offsets in push constants (payload
     delivery), it's just register offset calculation
   - if we have an dynamic value it's already using MOV_INDIRECT

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Fixes: e103afe7be ("brw: run the nir_opt_offsets pass and set the maximum offset size")
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36958>
(cherry picked from commit 27c69acb6a)
This commit is contained in:
Lionel Landwerlin 2025-08-22 15:58:21 +03:00 committed by Eric Engestrom
parent 387a1c2c08
commit 8395d77ccb
2 changed files with 1 additions and 2 deletions

View file

@ -4304,7 +4304,7 @@
"description": "brw: remove uniform from opt_offsets",
"nominated": true,
"nomination_type": 2,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": "e103afe7bec5eb509bf11ea62148a3db61a9eeaa",
"notes": null

View file

@ -1948,7 +1948,6 @@ brw_vectorize_lower_mem_access(nir_shader *nir,
.buffer_max = UINT32_MAX,
.shared_max = UINT32_MAX,
.shared_atomic_max = UINT32_MAX,
.uniform_max = UINT32_MAX,
};
OPT(nir_opt_offsets, &offset_options);