summaryrefslogtreecommitdiffstats
path: root/src/gallium/include
diff options
context:
space:
mode:
authorOded Gabbay <[email protected]>2016-03-02 21:11:49 +0200
committerOded Gabbay <[email protected]>2016-03-03 09:20:08 +0200
commitef5183faea98dfdaa1ca0c7368c4678a031dd804 (patch)
treee9a0ea7e2fd91651526b5ab4262d036de4a03bd9 /src/gallium/include
parent7bb193d28c4195b5c3dd7897e6c9f5b0df2749cb (diff)
r600g: Do colorformat endian swap for PIPE_USAGE_STAGING
There is an old if statement (dated to 2011) that prevented doing endian swap for colorformat, in case the buffer is marked as PIPE_USAGE_STAGING. This is now wrong because st_ReadPixels() reads into a destination texture that is marked with PIPE_USAGE_STAGING. Therefore, even if the texture is rendered correctly to the monitor, when reading it back we get unswapped/wrong values. This patch makes the check_rgba() function in gl-1.0-readpixsanity piglit test pass in big-endian. v2: removed duplicate call to r600_colorformat_endian_swap() inside evergreen_init_color_surface_rat() Signed-off-by: Oded Gabbay <[email protected]> Cc: "11.1 11.2" <[email protected]> Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/gallium/include')
0 files changed, 0 insertions, 0 deletions