gallium/radeon: support PIPE_CAP_SURFACE_REINTERPRET_BLOCKS
authorNicolai Hähnle <nicolai.haehnle@amd.com>
Tue, 26 Jan 2016 15:29:50 +0000 (10:29 -0500)
committerNicolai Hähnle <nicolai.haehnle@amd.com>
Wed, 3 Feb 2016 13:10:37 +0000 (14:10 +0100)
commit7dd31b81fee7fe40bd09cf3fbc324fcc32782479
tree6c709b737fb8a9f786cf8650c4eef329d5cf4094
parent4b02f165375ccff65e117651a9a75920a1b4e502
gallium/radeon: support PIPE_CAP_SURFACE_REINTERPRET_BLOCKS

This is already used internally in si_resource_copy_region for compressed
textures, so the only real change here is the adjusted surface size
computation.

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Reviewed-by: Edward O'Callaghan <eocallaghan@alterapraxis.com>
src/gallium/drivers/r600/r600_pipe.c
src/gallium/drivers/radeon/r600_texture.c
src/gallium/drivers/radeonsi/si_pipe.c