Module: Mesa
Branch: main
Commit: fb40fb595b556f763852831cd25e1ddd47c3d10d
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=fb40fb595b556f763852831cd25e1ddd47c3d10d

Author: Chia-I Wu <[email protected]>
Date:   Tue Sep 26 16:45:56 2023 -0700

vulkan/runtime: fix a harmless typo for ETC2 emulation

Init input_img_3d correctly.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25071>

---

 src/vulkan/runtime/vk_texcompress_etc2.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/vulkan/runtime/vk_texcompress_etc2.c 
b/src/vulkan/runtime/vk_texcompress_etc2.c
index 9b66535e519..558d91e95dd 100644
--- a/src/vulkan/runtime/vk_texcompress_etc2.c
+++ b/src/vulkan/runtime/vk_texcompress_etc2.c
@@ -159,8 +159,8 @@ etc2_build_shader(struct vk_device *dev, const struct 
nir_shader_compiler_option
    input_img_2d->data.binding = 0;
 
    nir_variable *input_img_3d = nir_variable_create(b.shader, nir_var_uniform, 
sampler_type_3d, "s_tex_3d");
-   input_img_2d->data.descriptor_set = 0;
-   input_img_2d->data.binding = 0;
+   input_img_3d->data.descriptor_set = 0;
+   input_img_3d->data.binding = 0;
 
    nir_variable *output_img_2d = nir_variable_create(b.shader, nir_var_image, 
img_type_2d, "out_img_2d");
    output_img_2d->data.descriptor_set = 0;

Reply via email to