Henri Verbeet : vkd3d-shader: Rename the VKD3D_DUMMY_SAMPLER_INDEX macro to VKD3D_SHADER_DUMMY_SAMPLER_INDEX.

Alexandre Julliard julliard at winehq.org
Wed Jul 22 16:29:49 CDT 2020


Module: vkd3d
Branch: master
Commit: a196555513e82945d52ca45ed62e5ff8474f95ba
URL:    https://source.winehq.org/git/vkd3d.git/?a=commit;h=a196555513e82945d52ca45ed62e5ff8474f95ba

Author: Henri Verbeet <hverbeet at codeweavers.com>
Date:   Wed Jul 22 16:12:13 2020 +0430

vkd3d-shader: Rename the VKD3D_DUMMY_SAMPLER_INDEX macro to VKD3D_SHADER_DUMMY_SAMPLER_INDEX.

Signed-off-by: Henri Verbeet <hverbeet at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 include/vkd3d_shader.h    | 2 +-
 libs/vkd3d-shader/spirv.c | 6 +++---
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/include/vkd3d_shader.h b/include/vkd3d_shader.h
index 601f21f..2b1770f 100644
--- a/include/vkd3d_shader.h
+++ b/include/vkd3d_shader.h
@@ -153,7 +153,7 @@ struct vkd3d_shader_resource_binding
     struct vkd3d_shader_descriptor_binding binding;
 };
 
-#define VKD3D_DUMMY_SAMPLER_INDEX ~0u
+#define VKD3D_SHADER_DUMMY_SAMPLER_INDEX ~0u
 
 struct vkd3d_shader_combined_resource_sampler
 {
diff --git a/libs/vkd3d-shader/spirv.c b/libs/vkd3d-shader/spirv.c
index 94d7eff..bbfe701 100644
--- a/libs/vkd3d-shader/spirv.c
+++ b/libs/vkd3d-shader/spirv.c
@@ -5250,7 +5250,7 @@ static void vkd3d_dxbc_compiler_emit_combined_sampler_declarations(struct vkd3d_
 
         d = vkd3d_dxbc_compiler_get_descriptor_info(compiler,
                 VKD3D_SHADER_DESCRIPTOR_TYPE_SAMPLER, 0, current->sampler_index);
-        depth = current->sampler_index != VKD3D_DUMMY_SAMPLER_INDEX
+        depth = current->sampler_index != VKD3D_SHADER_DUMMY_SAMPLER_INDEX
                 && (d->flags & VKD3D_SHADER_DESCRIPTOR_INFO_FLAG_SAMPLER_COMPARISON_MODE);
 
         image_type_id = vkd3d_dxbc_compiler_get_image_type_id(compiler, resource, resource_space,
@@ -5263,7 +5263,7 @@ static void vkd3d_dxbc_compiler_emit_combined_sampler_declarations(struct vkd3d_
 
         vkd3d_dxbc_compiler_emit_descriptor_binding(compiler, var_id, &current->binding);
 
-        if (current->sampler_index == VKD3D_DUMMY_SAMPLER_INDEX)
+        if (current->sampler_index == VKD3D_SHADER_DUMMY_SAMPLER_INDEX)
             vkd3d_spirv_build_op_name(builder, var_id, "t%u_dummy_sampler", resource_index);
         else
             vkd3d_spirv_build_op_name(builder, var_id, "t%u_s%u", resource_index, current->sampler_index);
@@ -7210,7 +7210,7 @@ static const struct vkd3d_symbol *vkd3d_dxbc_compiler_find_combined_sampler(stru
         return NULL;
 
     resource_index = resource_reg->idx[0].offset;
-    sampler_index = sampler_reg ? sampler_reg->idx[0].offset : VKD3D_DUMMY_SAMPLER_INDEX;
+    sampler_index = sampler_reg ? sampler_reg->idx[0].offset : VKD3D_SHADER_DUMMY_SAMPLER_INDEX;
 
     vkd3d_symbol_make_combined_sampler(&key, resource_index, sampler_index);
     if ((entry = rb_get(&compiler->symbol_table, &key)))




More information about the wine-cvs mailing list