diff options
author | Dave Airlie <[email protected]> | 2010-04-03 21:52:09 +1000 |
---|---|---|
committer | Dave Airlie <[email protected]> | 2010-04-03 21:54:49 +1000 |
commit | 4c26cdbe01619abad413b09317f2842dcf1a4d57 (patch) | |
tree | 36f99826c58411e1b02c94b4864f325887486aa2 /src/gallium/drivers/r300/r300_texture.c | |
parent | f618867645b3ce2570958bfacc1faf8c88e7a620 (diff) |
r300g: fix color tiling for buffer from X server.
The tiling setup needs a bit of work, but this should be good enough for now,
when we get buffers from the kernel we need to store their tiling properties.
Signed-off-by: Dave Airlie <[email protected]>
Diffstat (limited to 'src/gallium/drivers/r300/r300_texture.c')
-rw-r--r-- | src/gallium/drivers/r300/r300_texture.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/drivers/r300/r300_texture.c b/src/gallium/drivers/r300/r300_texture.c index e7bac615dff..a9c9e14ba7c 100644 --- a/src/gallium/drivers/r300/r300_texture.c +++ b/src/gallium/drivers/r300/r300_texture.c @@ -909,6 +909,7 @@ static struct pipe_texture* /* one ref already taken */ tex->buffer = buffer; + rws->buffer_get_tiling(rws, buffer, &tex->microtile, &tex->macrotile); return (struct pipe_texture*)tex; } |