mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 02:10:11 +01:00
st/nine: Clear struct pipe_blit_info before use.
render_condition_enable was uninitialized. Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu> Reviewed-by: Axel Davy <axel.davy@ens.fr> Signed-off-by: Xavier Bouchoux <xavierb@gmail.com>
This commit is contained in:
parent
77a38d2088
commit
f3fd06e94d
2 changed files with 4 additions and 0 deletions
|
|
@ -1342,6 +1342,7 @@ NineDevice9_StretchRect( struct NineDevice9 *This,
|
|||
(pSourceRect->left <= pSourceRect->right &&
|
||||
pSourceRect->top <= pSourceRect->bottom), D3DERR_INVALIDCALL);
|
||||
|
||||
memset(&blit, 0, sizeof(blit));
|
||||
blit.dst.resource = dst_res;
|
||||
blit.dst.level = dst->level;
|
||||
blit.dst.box.z = dst->layer;
|
||||
|
|
@ -2130,6 +2131,7 @@ NineDevice9_ResolveZ( struct NineDevice9 *This )
|
|||
desc = util_format_description(dst->format);
|
||||
user_assert(desc->colorspace == UTIL_FORMAT_COLORSPACE_ZS, D3DERR_INVALIDCALL);
|
||||
|
||||
memset(&blit, 0, sizeof(blit));
|
||||
blit.src.resource = src;
|
||||
blit.src.level = 0;
|
||||
blit.src.format = src->format;
|
||||
|
|
|
|||
|
|
@ -554,6 +554,7 @@ handle_draw_cursor_and_hud( struct NineSwapChain9 *This, struct pipe_resource *r
|
|||
struct pipe_blit_info blit;
|
||||
|
||||
if (device->cursor.software && device->cursor.visible && device->cursor.w) {
|
||||
memset(&blit, 0, sizeof(blit));
|
||||
blit.src.resource = device->cursor.image;
|
||||
blit.src.level = 0;
|
||||
blit.src.format = device->cursor.image->format;
|
||||
|
|
@ -677,6 +678,7 @@ present( struct NineSwapChain9 *This,
|
|||
handle_draw_cursor_and_hud(This, resource);
|
||||
|
||||
if (This->present_buffers) {
|
||||
memset(&blit, 0, sizeof(blit));
|
||||
blit.src.resource = resource;
|
||||
blit.src.level = 0;
|
||||
blit.src.format = resource->format;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue