summaryrefslogtreecommitdiff
path: root/src/intel/compiler/brw_fs_combine_constants.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/intel/compiler/brw_fs_combine_constants.cpp')
-rw-r--r--src/intel/compiler/brw_fs_combine_constants.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/intel/compiler/brw_fs_combine_constants.cpp b/src/intel/compiler/brw_fs_combine_constants.cpp
index e07d657db7a..a0988ae7589 100644
--- a/src/intel/compiler/brw_fs_combine_constants.cpp
+++ b/src/intel/compiler/brw_fs_combine_constants.cpp
@@ -48,7 +48,7 @@ static const bool debug = false;
static bool
could_coissue(const struct gen_device_info *devinfo, const fs_inst *inst)
{
- if (devinfo->gen != 7)
+ if (devinfo->ver != 7)
return false;
switch (inst->opcode) {
@@ -77,7 +77,7 @@ must_promote_imm(const struct gen_device_info *devinfo, const fs_inst *inst)
{
switch (inst->opcode) {
case SHADER_OPCODE_POW:
- return devinfo->gen < 8;
+ return devinfo->ver < 8;
case BRW_OPCODE_MAD:
case BRW_OPCODE_LRP:
return true;
@@ -340,7 +340,7 @@ represent_src_as_imm(const struct gen_device_info *devinfo,
fs_reg *src)
{
/* TODO : consider specific platforms also */
- if (devinfo->gen == 12) {
+ if (devinfo->ver == 12) {
uint16_t hf;
if (representable_as_hf(src->f, &hf)) {
*src = retype(brw_imm_uw(hf), BRW_REGISTER_TYPE_HF);
@@ -465,7 +465,7 @@ fs_visitor::opt_combine_constants()
* replicating the single one we want. To avoid this, we always populate
* both HF slots within a DWord with the constant.
*/
- const uint32_t width = devinfo->gen == 8 && imm->is_half_float ? 2 : 1;
+ const uint32_t width = devinfo->ver == 8 && imm->is_half_float ? 2 : 1;
const fs_builder ibld = bld.at(imm->block, n).exec_all().group(width, 0);
/* Put the immediate in an offset aligned to its size. Some instructions