diff options
author | Jordan Justen <[email protected]> | 2015-10-12 17:18:51 -0700 |
---|---|---|
committer | Jordan Justen <[email protected]> | 2015-10-14 13:16:29 -0700 |
commit | 63728dac57c18df0f45bb2482f60188fac2d1efe (patch) | |
tree | 3f77de025936c0c32a1626ec0dbb1d6efcaef4a5 /src/mesa/drivers/dri | |
parent | 9abbf65d0ae8bd3e1e50d4bdfdf0d80191ace9aa (diff) |
i965/fs: Simplify FS in brw_nir_lower_inputs to only support scalar mode
Signed-off-by: Jordan Justen <[email protected]>
Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_nir.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_nir.c b/src/mesa/drivers/dri/i965/brw_nir.c index 4f35d81fc7e..5459ab59c1a 100644 --- a/src/mesa/drivers/dri/i965/brw_nir.c +++ b/src/mesa/drivers/dri/i965/brw_nir.c @@ -96,8 +96,9 @@ brw_nir_lower_inputs(nir_shader *nir, bool is_scalar) } break; case MESA_SHADER_FRAGMENT: + assert(is_scalar); nir_assign_var_locations(&nir->inputs, &nir->num_inputs, - is_scalar ? type_size_scalar : type_size_vec4); + type_size_scalar); break; default: unreachable("unsupported shader stage"); |