r300g: fix up cubemap texture offset computation
authorMarek Olšák <maraeo@gmail.com>
Thu, 2 Dec 2010 13:30:56 +0000 (14:30 +0100)
committerMarek Olšák <maraeo@gmail.com>
Thu, 2 Dec 2010 13:44:28 +0000 (14:44 +0100)
Broken since 4c7001462607e6e99e474d6271dd481d3f8f201c.

src/gallium/drivers/r300/r300_texture_desc.c

index 8c985946315b5d0cc301c9c0b2147854563ba5e2..aa82c47151a14dcc0931948cb1c38324f0cb8523 100644 (file)
@@ -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: