mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 15:58:05 +02:00
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:
parent
c845b30a21
commit
80f01c03ba
1 changed files with 5 additions and 5 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue