summaryrefslogtreecommitdiffstats
path: root/src/gallium/state_trackers/clover
diff options
context:
space:
mode:
authorAaron Watry <[email protected]>2017-04-04 20:16:02 -0500
committerAaron Watry <[email protected]>2017-04-05 09:19:48 -0500
commit4d0399f1755145b7c25f0aba0413e41e43e4cbbe (patch)
tree2186ead6ff152e77342fa11adb2631f9fefcf203 /src/gallium/state_trackers/clover
parentd921af62f5761b331039eee1497861b5826ecf82 (diff)
st/clover: Fix build after shrink of pipe_box
Fixes: 3dfe61e ("gallium: decrease the size of pipe_box - 24 -> 16 bytes") Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=100569 Signed-off-by: Aaron Watry <[email protected]> Reviewed-by: Francisco Jerez <[email protected]> Tested-by: Vinson Lee <[email protected]>
Diffstat (limited to 'src/gallium/state_trackers/clover')
-rw-r--r--src/gallium/state_trackers/clover/core/resource.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gallium/state_trackers/clover/core/resource.cpp b/src/gallium/state_trackers/clover/core/resource.cpp
index 28fba1ac1ad..79911771a00 100644
--- a/src/gallium/state_trackers/clover/core/resource.cpp
+++ b/src/gallium/state_trackers/clover/core/resource.cpp
@@ -33,9 +33,9 @@ namespace {
class box {
public:
box(const resource::vector &origin, const resource::vector &size) :
- pipe({ (int)origin[0], (int)origin[1],
- (int)origin[2], (int)size[0],
- (int)size[1], (int)size[2] }) {
+ pipe({ (int)origin[0], (int16_t)origin[1],
+ (int16_t)origin[2], (int)size[0],
+ (int16_t)size[1], (int16_t)size[2] }) {
}
operator const pipe_box *() {