diff options
author | Jakob Bornecrantz <[email protected]> | 2009-11-06 19:05:41 +0000 |
---|---|---|
committer | Jakob Bornecrantz <[email protected]> | 2009-11-06 19:05:41 +0000 |
commit | dc97a5d782b01d530bb7cbe6e76625f969259e32 (patch) | |
tree | fee0e209a9232dbba9c6c710db7bcb9a4a650176 /src/gallium/drivers | |
parent | 8353162a4c7d2798a88a39ea24674e601fe95f6f (diff) |
i965g: Match pitch modification on get buffer as well
This is a ugly hack in order to match what the intel
X driver gives us. However putting this in the winsys
where it fits better forces it reach more into the
driver then it already does.
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r-- | src/gallium/drivers/i965/brw_screen_texture.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/i965/brw_screen_texture.c b/src/gallium/drivers/i965/brw_screen_texture.c index 842c70a39ad..dbefbfc5cca 100644 --- a/src/gallium/drivers/i965/brw_screen_texture.c +++ b/src/gallium/drivers/i965/brw_screen_texture.c @@ -371,7 +371,7 @@ boolean brw_texture_get_winsys_buffer(struct pipe_texture *texture, *buffer = tex->bo; if (stride) - *stride = tex->pitch; + *stride = tex->pitch * tex->cpp; return TRUE; } |