From: Marek Olšák Date: Thu, 2 Dec 2010 13:30:56 +0000 (+0100) Subject: r300g: fix up cubemap texture offset computation X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f3021c688fc7a9c7d1eb5c207b6edebfcc9bd6fb;p=mesa.git r300g: fix up cubemap texture offset computation Broken since 4c7001462607e6e99e474d6271dd481d3f8f201c. --- 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: