summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/i965/brw_shader.h
diff options
context:
space:
mode:
authorFrancisco Jerez <currojerez@riseup.net>2016-04-28 00:19:12 -0700
committerMatt Turner <mattst88@gmail.com>2016-05-03 18:06:21 -0700
commitc55dc77ab13420a9fe0177ccd21a6b0a950d9113 (patch)
tree0f139b6a086d70db54989872c89c552058fa031e /src/mesa/drivers/dri/i965/brw_shader.h
parent7d9143ad885752184156b3a0d3e492aef09af3b0 (diff)
downloadexternal_mesa3d-c55dc77ab13420a9fe0177ccd21a6b0a950d9113.zip
external_mesa3d-c55dc77ab13420a9fe0177ccd21a6b0a950d9113.tar.gz
external_mesa3d-c55dc77ab13420a9fe0177ccd21a6b0a950d9113.tar.bz2
i965: Pass devinfo pointer to brw_instruction_name().
A future series will implement support for an instruction that happens to have the same opcode number as another instruction we support already on a disjoint set of hardware generations. In order to disambiguate which instruction it is brw_instruction_name() will need some way to find out which device we are generating code for. Reviewed-by: Iago Toral Quiroga <itoral@igalia.com> Reviewed-by: Matt Turner <mattst88@gmail.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_shader.h')
-rw-r--r--src/mesa/drivers/dri/i965/brw_shader.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_shader.h b/src/mesa/drivers/dri/i965/brw_shader.h
index fc228f6..8ab8d5b 100644
--- a/src/mesa/drivers/dri/i965/brw_shader.h
+++ b/src/mesa/drivers/dri/i965/brw_shader.h
@@ -235,7 +235,8 @@ struct backend_shader;
enum brw_reg_type brw_type_for_base_type(const struct glsl_type *type);
enum brw_conditional_mod brw_conditional_for_comparison(unsigned int op);
uint32_t brw_math_function(enum opcode op);
-const char *brw_instruction_name(enum opcode op);
+const char *brw_instruction_name(const struct brw_device_info *devinfo,
+ enum opcode op);
bool brw_saturate_immediate(enum brw_reg_type type, struct brw_reg *reg);
bool brw_negate_immediate(enum brw_reg_type type, struct brw_reg *reg);
bool brw_abs_immediate(enum brw_reg_type type, struct brw_reg *reg);