summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/i965/brw_nir.c
diff options
context:
space:
mode:
authorTimothy Arceri <timothy.arceri@collabora.com>2016-06-14 14:39:16 +1000
committerTimothy Arceri <timothy.arceri@collabora.com>2016-06-15 15:01:10 +1000
commita8a9d1bf41c00123cefb6e757f3509c62e880a15 (patch)
treeda3bb99f3da352ab3de0082f950e0817da2b9aa6 /src/mesa/drivers/dri/i965/brw_nir.c
parent8b408972ff5476f1e23ad24a329f89442e6df054 (diff)
downloadexternal_mesa3d-a8a9d1bf41c00123cefb6e757f3509c62e880a15.zip
external_mesa3d-a8a9d1bf41c00123cefb6e757f3509c62e880a15.tar.gz
external_mesa3d-a8a9d1bf41c00123cefb6e757f3509c62e880a15.tar.bz2
i965: remove type_size_vec4_times_4()
type_size_vec4_times_4() was introduced as a fix in 8dcf807cb43383 however since 3810c1561 we can just use type_size_scalar() and get the actual number of outputs we need. Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_nir.c')
-rw-r--r--src/mesa/drivers/dri/i965/brw_nir.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_nir.c b/src/mesa/drivers/dri/i965/brw_nir.c
index e01f160..d8cf12d 100644
--- a/src/mesa/drivers/dri/i965/brw_nir.c
+++ b/src/mesa/drivers/dri/i965/brw_nir.c
@@ -292,8 +292,8 @@ brw_nir_lower_vue_outputs(nir_shader *nir,
{
if (is_scalar) {
nir_assign_var_locations(&nir->outputs, &nir->num_outputs,
- type_size_vec4_times_4);
- nir_lower_io(nir, nir_var_shader_out, type_size_vec4_times_4);
+ type_size_scalar);
+ nir_lower_io(nir, nir_var_shader_out, type_size_scalar);
} else {
nir_foreach_variable(var, &nir->outputs)
var->data.driver_location = var->data.location;