radv: Remove create_accel_build_shader
authorKonstantin Seurer <konstantin.seurer@gmail.com>
Sun, 9 Oct 2022 12:46:31 +0000 (14:46 +0200)
committerKonstantin Seurer <konstantin.seurer@gmail.com>
Wed, 12 Oct 2022 06:56:05 +0000 (08:56 +0200)
Unused since every kernel is written in GLSL now.

Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19006>

src/amd/vulkan/radv_acceleration_structure.c

index c9c65c3..c7255e9 100644 (file)
@@ -268,19 +268,6 @@ radv_CopyAccelerationStructureKHR(VkDevice _device, VkDeferredOperationKHR defer
    return VK_ERROR_FEATURE_NOT_PRESENT;
 }
 
-static nir_builder
-create_accel_build_shader(struct radv_device *device, const char *name)
-{
-   nir_builder b = radv_meta_init_shader(device, MESA_SHADER_COMPUTE, "%s", name);
-   b.shader->info.workgroup_size[0] = 64;
-
-   assert(b.shader->info.workgroup_size[1] == 1);
-   assert(b.shader->info.workgroup_size[2] == 1);
-   assert(!b.shader->info.workgroup_size_variable);
-
-   return b;
-}
-
 void
 radv_device_finish_accel_struct_build_state(struct radv_device *device)
 {