summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/i965/brw_vec4.h
diff options
context:
space:
mode:
authorAlejandro PiƱeiro <apinheiro@igalia.com>2015-07-06 13:31:05 +0200
committerJason Ekstrand <jason.ekstrand@intel.com>2015-08-03 09:40:50 -0700
commitc15eea2afa7a295992cde949b8e2a5d4552f6290 (patch)
treeb460adbbe1a3626a46f1dd86bf234f43e0c7472b /src/mesa/drivers/dri/i965/brw_vec4.h
parent57182332b84b58fed6641314def67450893b7419 (diff)
downloadexternal_mesa3d-c15eea2afa7a295992cde949b8e2a5d4552f6290.zip
external_mesa3d-c15eea2afa7a295992cde949b8e2a5d4552f6290.tar.gz
external_mesa3d-c15eea2afa7a295992cde949b8e2a5d4552f6290.tar.bz2
i965/vec4: Change vec4_visitor::swizzle_result() method to allow reuse
This patch changes the signature of swizzle_result() to accept lower level arguments. The purpose is to reuse it in the upcoming NIR->vec4 pass. Reviewed-by: Jason Ekstrand <jason.ekstrand@intel.com>
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_vec4.h')
-rw-r--r--src/mesa/drivers/dri/i965/brw_vec4.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_vec4.h b/src/mesa/drivers/dri/i965/brw_vec4.h
index 170353a..f1482bb 100644
--- a/src/mesa/drivers/dri/i965/brw_vec4.h
+++ b/src/mesa/drivers/dri/i965/brw_vec4.h
@@ -337,7 +337,9 @@ public:
src_reg emit_mcs_fetch(const glsl_type *coordinate_type, src_reg coordinate,
src_reg sampler);
void emit_gen6_gather_wa(uint8_t wa, dst_reg dst);
- void swizzle_result(ir_texture *ir, src_reg orig_val, uint32_t sampler);
+ void swizzle_result(ir_texture_opcode op, dst_reg dest,
+ src_reg orig_val, uint32_t sampler,
+ const glsl_type *dest_type);
void emit_ndc_computation();
void emit_psiz_and_flags(dst_reg reg);