summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/radeon/r600_texture.c
diff options
context:
space:
mode:
authorGrigori Goronzy <[email protected]>2014-06-04 18:54:37 +0200
committerChristian König <[email protected]>2014-06-18 13:58:37 +0200
commitcf05f9bf016c544fe15b7ac724f78d7524ce61de (patch)
tree12961f3d689e9f9dfcaf7257bf3f796172a44455 /src/gallium/drivers/radeon/r600_texture.c
parentf5dafc156a28f6550b6a0bfd5153b40448402f0c (diff)
radeonsi: add sampling of 4:2:2 subsampled textures
This makes 4:2:2 video surfaces work in VDPAU. Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/gallium/drivers/radeon/r600_texture.c')
-rw-r--r--src/gallium/drivers/radeon/r600_texture.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/gallium/drivers/radeon/r600_texture.c b/src/gallium/drivers/radeon/r600_texture.c
index 3a37465b13e..a20b0c8dc9b 100644
--- a/src/gallium/drivers/radeon/r600_texture.c
+++ b/src/gallium/drivers/radeon/r600_texture.c
@@ -737,9 +737,8 @@ static unsigned r600_choose_tiling(struct r600_common_screen *rscreen,
* Compressed textures must always be tiled. */
if (!(templ->flags & R600_RESOURCE_FLAG_FORCE_TILING) &&
!util_format_is_compressed(templ->format)) {
- /* Tiling doesn't work with the 422 (SUBSAMPLED) formats on R600-Cayman. */
- if (rscreen->chip_class <= CAYMAN &&
- desc->layout == UTIL_FORMAT_LAYOUT_SUBSAMPLED)
+ /* Tiling doesn't work with the 422 (SUBSAMPLED) formats on R600+. */
+ if (desc->layout == UTIL_FORMAT_LAYOUT_SUBSAMPLED)
return RADEON_SURF_MODE_LINEAR_ALIGNED;
/* Cursors are linear on SI.