summaryrefslogtreecommitdiff
path: root/backend/src/ir
diff options
context:
space:
mode:
authorRuiling Song <ruiling.song@intel.com>2014-07-28 09:19:29 +0800
committerZhigang Gong <zhigang.gong@intel.com>2014-07-28 14:25:24 +0800
commit88312c05e1aa4f79639eed7cc95390bde5c87c9a (patch)
tree4c58bcb14410ea0f4cc38f756ca4dfb93c9e23eb /backend/src/ir
parent898923c1db57b1cb3947c0553e59c1bd7c9ac59a (diff)
GBE: align the fields in union ImageInfoKey.
To avoid possible garbage data. Signed-off-by: Ruiling Song <ruiling.song@intel.com> Reviewed-by: Zhigang Gong <zhigang.gong@linux.intel.com>
Diffstat (limited to 'backend/src/ir')
-rw-r--r--backend/src/ir/image.hpp2
-rw-r--r--backend/src/ir/instruction.hpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/backend/src/ir/image.hpp b/backend/src/ir/image.hpp
index a79e0a34..82fee561 100644
--- a/backend/src/ir/image.hpp
+++ b/backend/src/ir/image.hpp
@@ -93,7 +93,7 @@ namespace ir {
private:
map<Register, struct ImageInfo *> regMap;
map<uint32_t, struct ImageInfo *> indexMap;
- map<uint32_t, Register> infoRegMap;
+ map<uint16_t, Register> infoRegMap;
GBE_CLASS(ImageSet);
};
} /* namespace ir */
diff --git a/backend/src/ir/instruction.hpp b/backend/src/ir/instruction.hpp
index 5f0cb052..ada780f5 100644
--- a/backend/src/ir/instruction.hpp
+++ b/backend/src/ir/instruction.hpp
@@ -375,7 +375,7 @@ namespace ir {
uint8_t index; /*! the allocated image index */
uint8_t type; /*! the information type */
};
- uint32_t data;
+ uint16_t data;
} ImageInfoKey;
/*! Get image information */