diff options
author | Chad Versace <[email protected]> | 2016-02-10 13:36:56 -0800 |
---|---|---|
committer | Chad Versace <[email protected]> | 2016-02-12 09:15:58 -0800 |
commit | cf7fd538509dfdab7696fc8cebc08a6f57548011 (patch) | |
tree | ef156026921cb154772cae77b15c99088d63c064 | |
parent | ea93041ccce6f4c460b71c48c1cb8589bf0bbe7c (diff) |
anv/meta: Hardcode smooth texcoord interpolation in blit shaders
Trivial cleanup. No change in behavior.
Function argument 'attr_flat', in anv_meta.c:build_nir_vertex_shader(),
was always false.
-rw-r--r-- | src/vulkan/anv_meta.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/vulkan/anv_meta.c b/src/vulkan/anv_meta.c index 46227c3407e..9b48b7f5dbb 100644 --- a/src/vulkan/anv_meta.c +++ b/src/vulkan/anv_meta.c @@ -34,7 +34,7 @@ struct anv_render_pass anv_meta_dummy_renderpass = {0}; static nir_shader * -build_nir_vertex_shader(bool attr_flat) +build_nir_vertex_shader(void) { nir_builder b; @@ -61,8 +61,7 @@ build_nir_vertex_shader(bool attr_flat) nir_variable *attr_out = nir_variable_create(b.shader, nir_var_shader_out, attr_type, "v_attr"); attr_out->data.location = VARYING_SLOT_VAR0; - attr_out->data.interpolation = attr_flat ? INTERP_QUALIFIER_FLAT : - INTERP_QUALIFIER_SMOOTH; + attr_out->data.interpolation = INTERP_QUALIFIER_SMOOTH; nir_copy_var(&b, attr_out, attr_in); return b.shader; @@ -239,7 +238,7 @@ anv_device_init_meta_blit_state(struct anv_device *device) * does not dead-code our inputs. */ struct anv_shader_module vs = { - .nir = build_nir_vertex_shader(false), + .nir = build_nir_vertex_shader(), }; struct anv_shader_module fs_1d = { |