intel/compiler: remove redundant code

has_lsc is checked few lines above, so this code doesn't matter.

Added in: a358b97c58 ("intel/fs: optimize uniform SSBO & shared loads")

Reviewed-by: Sagar Ghuge <sagar.ghuge@intel.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24260>
This commit is contained in:
Marcin Ślusarz
2023-07-20 19:42:12 +02:00
committed by Marge Bot
parent e3ecba3266
commit 3c83ac8002

View File

@@ -78,12 +78,6 @@ brw_nir_blockify_uniform_loads_instr(nir_builder *b,
if (nir_dest_bit_size(intrin->dest) != 32)
return false;
/* Without the LSC, we can only do block loads of at least 4dwords (1
* oword).
*/
if (!devinfo->has_lsc && nir_dest_num_components(intrin->dest) < 4)
return false;
intrin->intrinsic = nir_intrinsic_load_shared_uniform_block_intel;
return true;