diff options
author | Ben Crocker <[email protected]> | 2017-06-22 15:14:51 -0400 |
---|---|---|
committer | Andres Gomez <[email protected]> | 2017-06-28 20:15:05 +0300 |
commit | 84f756994fee351d1718998f6091caba913ce9cb (patch) | |
tree | 2ab08c40ee420e726d43aea763adc7a8efed282a /src/gallium/drivers | |
parent | 940e50f75413bc355e3bc0ac34a25a2d1b6b6fcf (diff) |
egl_dri2: swrastGetDrawableInfo: set *x, *y [v2]
In swrastGetDrawableInfo, set *x and *y, not just *w and *h;
this fixes a crash later in drisw_update_tex_buffer when the
(formerly) uninitialized x and y values are used to construct
an address in a call to llvmpipe_transfer_map.
Fixes crash in Piglit test
"spec@egl 1.4@eglcreatepbuffersurface and then glclear"
(<piglit dir>/bin/egl-create-pbuffer-surface -auto)
that occurred intermittently, e.g. when the uninitialized x and y in
drisw_update_tex_buffer just happened to contain absurd non-zero values.
v2: Initialize in case if function succeeds or fails, just like *w/*h.
Cc: [email protected]
Signed-off-by: Ben Crocker <[email protected]>
Reviewed-by: Emil Velikov <[email protected]>
(cherry picked from commit 162c42f8edde4a2c13b1eb5c0f9f0828441ed4c8)
Diffstat (limited to 'src/gallium/drivers')
0 files changed, 0 insertions, 0 deletions