summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorChad Versace <[email protected]>2015-11-03 14:53:52 -0800
committerChad Versace <[email protected]>2015-11-04 15:15:19 -0800
commit49c96a14c512b7b56d19c47d384ddcc67941633e (patch)
tree4c566f8b215de180e921cb2fbd7cbefa74915507 /src
parent7f82cc718f0faffc23a790914710f0b97db377d1 (diff)
anv/meta: Clear color attribute is always flat
No behavioral change. This patch just removes an unneeded function parameter.
Diffstat (limited to 'src')
-rw-r--r--src/vulkan/anv_meta_clear.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/vulkan/anv_meta_clear.c b/src/vulkan/anv_meta_clear.c
index 8f217105b4f..ade8b76f83a 100644
--- a/src/vulkan/anv_meta_clear.c
+++ b/src/vulkan/anv_meta_clear.c
@@ -160,7 +160,7 @@ anv_cmd_buffer_clear_attachments(struct anv_cmd_buffer *cmd_buffer,
}
static nir_shader *
-build_nir_vertex_shader(bool attr_flat)
+build_nir_vertex_shader(void)
{
nir_builder b;
@@ -186,8 +186,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_FLAT;
nir_copy_var(&b, attr_out, attr_in);
return b.shader;
@@ -218,7 +217,7 @@ void
anv_device_init_meta_clear_state(struct anv_device *device)
{
struct anv_shader_module vsm = {
- .nir = build_nir_vertex_shader(true),
+ .nir = build_nir_vertex_shader(),
};
struct anv_shader_module fsm = {