mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 09:28:07 +02:00
panvk: remove a redundant conditional
We've already checked PAN_ARCH just above here. Reviewed-by: Lars-Ivar Hesselberg Simonsen <lars-ivar.simonsen@arm.com> Reviewed-by: Ryan Mckeever <ryan.mckeever@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/40460>
This commit is contained in:
parent
a2e61ee1b9
commit
1a6809936f
1 changed files with 0 additions and 2 deletions
|
|
@ -633,14 +633,12 @@ load_img_size(nir_builder *b, nir_deref_instr *deref, enum glsl_sampler_dim dim,
|
|||
nir_def *tex_sz = load_resource_deref_desc(
|
||||
b, deref, VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE, 18, 3, 16, ctx);
|
||||
|
||||
#if PAN_ARCH < 9
|
||||
if (is_array && dim == GLSL_SAMPLER_DIM_CUBE)
|
||||
tex_sz =
|
||||
nir_vector_insert_imm(b, tex_sz,
|
||||
nir_udiv_imm(b, nir_channel(b, tex_sz, 2),
|
||||
6),
|
||||
2);
|
||||
#endif
|
||||
|
||||
if (is_array && dim == GLSL_SAMPLER_DIM_1D)
|
||||
tex_sz =
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue