projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7958344
)
r600g: disable tiling for 422 formats again
author
Marek Olšák
<maraeo@gmail.com>
Thu, 16 Aug 2012 18:36:40 +0000
(20:36 +0200)
committer
Marek Olšák
<maraeo@gmail.com>
Thu, 16 Aug 2012 18:44:54 +0000
(20:44 +0200)
src/gallium/drivers/r600/r600_texture.c
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/r600/r600_texture.c
b/src/gallium/drivers/r600/r600_texture.c
index c1499e66331b1a3c9971ec964e4be10066871939..b9b3ae8323bd08e51e7a2a9772eb2d3790721885 100644
(file)
--- a/
src/gallium/drivers/r600/r600_texture.c
+++ b/
src/gallium/drivers/r600/r600_texture.c
@@
-322,6
+322,10
@@
struct pipe_resource *r600_texture_create(struct pipe_screen *screen,
}
}
+ /* XXX tiling is broken for the 422 formats */
+ if (util_format_description(templ->format)->layout == UTIL_FORMAT_LAYOUT_SUBSAMPLED)
+ array_mode = V_038000_ARRAY_LINEAR_ALIGNED;
+
r = r600_init_surface(rscreen, &surface, templ, array_mode,
templ->flags & R600_RESOURCE_FLAG_TRANSFER,
templ->flags & R600_RESOURCE_FLAG_FLUSHED_DEPTH);