summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/i965/brw_eu.h
diff options
context:
space:
mode:
authorFrancisco Jerez <currojerez@riseup.net>2016-04-28 00:19:13 -0700
committerMatt Turner <mattst88@gmail.com>2016-05-03 18:06:21 -0700
commit1cc7573162a7f0e8346d7abab50890c58a0dce9a (patch)
treeac2c399432e71a5768521f67cdf5da7429a67fe1 /src/mesa/drivers/dri/i965/brw_eu.h
parentc55dc77ab13420a9fe0177ccd21a6b0a950d9113 (diff)
downloadexternal_mesa3d-1cc7573162a7f0e8346d7abab50890c58a0dce9a.zip
external_mesa3d-1cc7573162a7f0e8346d7abab50890c58a0dce9a.tar.gz
external_mesa3d-1cc7573162a7f0e8346d7abab50890c58a0dce9a.tar.bz2
i965: Pass devinfo pointer to is_3src() helpers.
This is not strictly required for the following changes because none of the three-source opcodes we support at the moment in the compiler back-end has been removed or redefined, but that's likely to change in the future. In any case having hardware instructions specified as a pair of hardware device and opcode number explicitly in all cases will simplify the opcode look-up interface introduced in a subsequent commit, since the opcode number alone is in general ambiguous. 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_eu.h')
-rw-r--r--src/mesa/drivers/dri/i965/brw_eu.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_eu.h b/src/mesa/drivers/dri/i965/brw_eu.h
index 08ad63a..89b4e7f 100644
--- a/src/mesa/drivers/dri/i965/brw_eu.h
+++ b/src/mesa/drivers/dri/i965/brw_eu.h
@@ -546,7 +546,7 @@ next_offset(const struct brw_device_info *devinfo, void *store, int offset)
}
static inline bool
-is_3src(enum opcode opcode)
+is_3src(const struct brw_device_info *devinfo, enum opcode opcode)
{
return opcode_descs[opcode].nsrc == 3;
}