summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 *() {