diff options
Diffstat (limited to 'src/amd/vulkan/radv_meta_resolve.c')
-rw-r--r-- | src/amd/vulkan/radv_meta_resolve.c | 28 |
1 files changed, 2 insertions, 26 deletions
diff --git a/src/amd/vulkan/radv_meta_resolve.c b/src/amd/vulkan/radv_meta_resolve.c index 70dcc30bee6..460a0bcb517 100644 --- a/src/amd/vulkan/radv_meta_resolve.c +++ b/src/amd/vulkan/radv_meta_resolve.c @@ -29,31 +29,7 @@ #include "nir/nir_builder.h" #include "sid.h" -/* vertex shader that generates vertex data */ -static nir_shader * -build_nir_vs(void) -{ - const struct glsl_type *vec4 = glsl_vec4_type(); - - nir_builder b; - nir_variable *v_position; - - nir_builder_init_simple_shader(&b, NULL, MESA_SHADER_VERTEX, NULL); - b.shader->info->name = ralloc_strdup(b.shader, "meta_resolve_vs"); - - nir_ssa_def *outvec = radv_meta_gen_rect_vertices(&b); - - v_position = nir_variable_create(b.shader, nir_var_shader_out, vec4, - "gl_Position"); - v_position->data.location = VARYING_SLOT_POS; - - - nir_store_var(&b, v_position, outvec, 0xf); - - return b.shader; -} - -/* simple passthrough shader */ +/* emit 0, 0, 0, 1 */ static nir_shader * build_nir_fs(void) { @@ -264,7 +240,7 @@ radv_device_init_meta_resolve_state(struct radv_device *device) zero(device->meta_state.resolve); - struct radv_shader_module vs_module = { .nir = build_nir_vs() }; + struct radv_shader_module vs_module = { .nir = radv_meta_build_nir_vs_generate_vertices() }; if (!vs_module.nir) { /* XXX: Need more accurate error */ res = VK_ERROR_OUT_OF_HOST_MEMORY; |