brw: remove unnecessary casts to unsigned after calling LSC_CACHE()

The macro already casts the values to unsigned.

Reviewed-by: Caio Oliveira <caio.oliveira@intel.com>
Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36150>
This commit is contained in:
Paulo Zanoni 2025-07-28 22:15:24 -07:00 committed by Marge Bot
parent c845b30a21
commit 80f01c03ba

View file

@ -1587,13 +1587,13 @@ lower_lsc_memory_logical_send(const brw_builder &bld, brw_inst *inst)
* these operations uncached.
*/
unsigned cache_mode =
lsc_opcode_is_atomic(op) ? (unsigned) LSC_CACHE(devinfo, STORE, L1UC_L3WB) :
lsc_opcode_is_atomic(op) ? LSC_CACHE(devinfo, STORE, L1UC_L3WB) :
volatile_access ?
(lsc_opcode_is_store(op) ?
(unsigned) LSC_CACHE(devinfo, STORE, L1UC_L3UC) :
(unsigned) LSC_CACHE(devinfo, LOAD, L1UC_L3UC)) :
lsc_opcode_is_store(op) ? (unsigned) LSC_CACHE(devinfo, STORE, L1STATE_L3MOCS) :
(unsigned) LSC_CACHE(devinfo, LOAD, L1STATE_L3MOCS);
LSC_CACHE(devinfo, STORE, L1UC_L3UC) :
LSC_CACHE(devinfo, LOAD, L1UC_L3UC)) :
lsc_opcode_is_store(op) ? LSC_CACHE(devinfo, STORE, L1STATE_L3MOCS) :
LSC_CACHE(devinfo, LOAD, L1STATE_L3MOCS);
/* If we're a fragment shader, we have to predicate with the sample mask to
* avoid helper invocations in instructions with side effects, unless they