From: Jakob Bornecrantz Date: Fri, 6 Nov 2009 19:05:41 +0000 (+0000) Subject: i965g: Match pitch modification on get buffer as well X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=dc97a5d782b01d530bb7cbe6e76625f969259e32;p=mesa.git 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. --- 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; }