i965: Enable tiled mem_copy with sRGB-formatted resources

Graphics / Mesa 3D Graphics Library / Mesa - Nanley Chery [intel.com] - 24 February 2016 16:40 UTC

RGBA8 and BGRA8 unorm formats are compatible with the various mem_copy functions. Their sRGB counterparts are also compatible because they're also color-renderable (of importance when the specified resource is a readbuffer) and they share the same physical layout.

3eb476f i965: Enable tiled mem_copy with sRGB-formatted resources
src/mesa/drivers/dri/i965/intel_tiled_memcpy.c | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)

Upstream: cgit.freedesktop.org


  • Share