winsys/radeon: set/get the scanout flag with the tiling ioctls
authorMarek Olšák <marek.olsak@amd.com>
Tue, 26 Nov 2013 21:59:31 +0000 (22:59 +0100)
committerMarek Olšák <marek.olsak@amd.com>
Thu, 12 Dec 2013 16:26:41 +0000 (17:26 +0100)
commit0b37737cc3e7042bffb7c8a0e6a5c822bb806977
tree721f0b14cfa702ca7c7e591bb56232514321639c
parenta6345f1559300e4eb51a36a1d0f15d6bc8b47dfb
winsys/radeon: set/get the scanout flag with the tiling ioctls

If we assume that all buffers allocated by the DDX are scanout, a new flag
that says "this is not scanout" has to be added to support the non-scanout
buffers and maintain backward compatibility.

This fixes bad rendering on Wayland.

The flag is defined as:
  #define RADEON_TILING_R600_NO_SCANOUT   RADEON_TILING_SWAP_16BIT

AFAIK, RADEON_TILING_SWAP_16BIT is not used on SI.

Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
src/gallium/drivers/r300/r300_state.c
src/gallium/drivers/r300/r300_texture.c
src/gallium/drivers/radeon/r600_texture.c
src/gallium/winsys/radeon/drm/radeon_drm_bo.c
src/gallium/winsys/radeon/drm/radeon_winsys.h