diff options
author | Marek Olšák <[email protected]> | 2010-01-09 19:19:44 +0100 |
---|---|---|
committer | Corbin Simpson <[email protected]> | 2010-01-17 01:03:50 -0800 |
commit | 8959608051ef8e4a97214323009d09c5e9e633fb (patch) | |
tree | cd8c852f9e6e34c89a5ff7bc11856495b6e278ae /src/gallium/drivers/r300/r300_screen.c | |
parent | 08edbe9f14712f719f838769c61123f83768af76 (diff) |
r300g: output texture debug messages if only RADEON_DEBUG=tex is set
Diffstat (limited to 'src/gallium/drivers/r300/r300_screen.c')
-rw-r--r-- | src/gallium/drivers/r300/r300_screen.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/gallium/drivers/r300/r300_screen.c b/src/gallium/drivers/r300/r300_screen.c index e16d659ec8d..d0f2c13df1d 100644 --- a/src/gallium/drivers/r300/r300_screen.c +++ b/src/gallium/drivers/r300/r300_screen.c @@ -319,6 +319,7 @@ r300_get_tex_transfer(struct pipe_screen *screen, { struct r300_texture *tex = (struct r300_texture *)texture; struct r300_transfer *trans; + struct r300_screen *rscreen = r300_screen(screen); unsigned offset; offset = r300_texture_get_offset(tex, level, zslice, face); /* in bytes */ @@ -330,11 +331,8 @@ r300_get_tex_transfer(struct pipe_screen *screen, trans->transfer.y = y; trans->transfer.width = w; trans->transfer.height = h; - trans->transfer.stride = r300_texture_get_stride(tex, level); + trans->transfer.stride = r300_texture_get_stride(rscreen, tex, level); trans->transfer.usage = usage; - - /* XXX not sure whether it's required to set these two, - the driver doesn't use them */ trans->transfer.zslice = zslice; trans->transfer.face = face; |