aboutsummaryrefslogtreecommitdiffstats
path: root/src/intel/compiler
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2017-03-02 21:39:58 -0800
committerJason Ekstrand <[email protected]>2017-03-14 07:36:40 -0700
commitb377be921324a1841027e68eac7d1b64c8e65bbd (patch)
tree52afdf760d43814aa878de51bfd3e2529f1a2cbb /src/intel/compiler
parent0bf0365393497d2d29fd24b4c42f17d5ad9bd4e2 (diff)
i965/fs: Use num_components from the SSA def in image intrinsics
Reviewed-by: Eric Anholt <[email protected]> Reviewed-by: Kenneth Graunke <[email protected]> Reviewed-by: Connor Abbott <[email protected]>
Diffstat (limited to 'src/intel/compiler')
-rw-r--r--src/intel/compiler/brw_fs_nir.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/intel/compiler/brw_fs_nir.cpp b/src/intel/compiler/brw_fs_nir.cpp
index d403dec5357..b392895e8fd 100644
--- a/src/intel/compiler/brw_fs_nir.cpp
+++ b/src/intel/compiler/brw_fs_nir.cpp
@@ -3759,8 +3759,7 @@ fs_visitor::nir_emit_intrinsic(const fs_builder &bld, nir_intrinsic_instr *instr
type->sampler_array;
/* Copy all the components. */
- const nir_intrinsic_info *info = &nir_intrinsic_infos[instr->intrinsic];
- for (unsigned c = 0; c < info->dest_components; ++c) {
+ for (unsigned c = 0; c < instr->dest.ssa.num_components; ++c) {
if ((int)c >= type->coordinate_components()) {
bld.MOV(offset(retype(dest, BRW_REGISTER_TYPE_D), bld, c),
brw_imm_d(1));