gallium/radeon/gfx9: fix PBO texture uploads to compressed textures
authorNicolai Hähnle <nicolai.haehnle@amd.com>
Tue, 6 Jun 2017 17:21:26 +0000 (19:21 +0200)
committerNicolai Hähnle <nicolai.haehnle@amd.com>
Mon, 19 Jun 2017 10:05:15 +0000 (12:05 +0200)
commit25e5534734b7de2a2359c42eeff5fd0c3c0507da
tree23eda6264ab465407c3f1dfad30c3ca7876b7968
parent4d5bb1b9877aecaefec53fca231a3df25e101e9a
gallium/radeon/gfx9: fix PBO texture uploads to compressed textures

st/mesa creates a surface that reinterprets the compressed blocks as
RGBA16UI or RGBA32UI. We have to adjust width0 & height0 accordingly to
avoid out-of-bounds memory accesses by CB.

Cc: 17.1 <mesa-stable@lists.freedesktop.org>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/gallium/drivers/radeon/r600_texture.c