projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ac4f61b
)
r600g: use LINEAR_ALIGNED tiling for 1D textures
author
Marek Olšák
<maraeo@gmail.com>
Mon, 12 Nov 2012 23:29:33 +0000
(
00:29
+0100)
committer
Marek Olšák
<maraeo@gmail.com>
Tue, 13 Nov 2012 14:00:37 +0000
(15:00 +0100)
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
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 b1dbf07dffa6da25ee48a5231d4fd36eb4c07db7..7e48f2766a73896faec58f5b353e7e8759ddec89 100644
(file)
--- a/
src/gallium/drivers/r600/r600_texture.c
+++ b/
src/gallium/drivers/r600/r600_texture.c
@@
-508,7
+508,8
@@
struct pipe_resource *r600_texture_create(struct pipe_screen *screen,
desc->layout != UTIL_FORMAT_LAYOUT_SUBSAMPLED) {
if (!(templ->bind & PIPE_BIND_SCANOUT) &&
templ->usage != PIPE_USAGE_STAGING &&
- templ->usage != PIPE_USAGE_STREAM) {
+ templ->usage != PIPE_USAGE_STREAM &&
+ templ->target != PIPE_TEXTURE_1D) {
array_mode = V_038000_ARRAY_2D_TILED_THIN1;
} else if (util_format_is_compressed(templ->format)) {
array_mode = V_038000_ARRAY_1D_TILED_THIN1;