summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2010-12-02 14:30:56 +0100
committerMarek Olšák <[email protected]>2010-12-02 14:44:28 +0100
commitf3021c688fc7a9c7d1eb5c207b6edebfcc9bd6fb (patch)
tree5246e563ee66519f66e12e842e95bd536bfc6cbd
parent431c478df9797c803a6c37b35f09988dc6c8ff7d (diff)
r300g: fix up cubemap texture offset computation
Broken since 4c7001462607e6e99e474d6271dd481d3f8f201c.
-rw-r--r--src/gallium/drivers/r300/r300_texture_desc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/drivers/r300/r300_texture_desc.c b/src/gallium/drivers/r300/r300_texture_desc.c
index 8c985946315..aa82c47151a 100644
--- a/src/gallium/drivers/r300/r300_texture_desc.c
+++ b/src/gallium/drivers/r300/r300_texture_desc.c
@@ -480,6 +480,7 @@ unsigned r300_texture_get_offset(struct r300_texture_desc *desc,
switch (desc->b.b.target) {
case PIPE_TEXTURE_3D:
+ case PIPE_TEXTURE_CUBE:
return offset + layer * desc->layer_size_in_bytes[level];
default: