mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 22:08:26 +02:00
v3dv: avoid some maybe-uninitialized warnings
Reviewed-by: Iago Toral Quiroga <itoral@igalia.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9640>
This commit is contained in:
parent
c373b24369
commit
ec4c79c2b0
2 changed files with 2 additions and 2 deletions
|
|
@ -251,6 +251,7 @@ create_display_fd_xcb(VkIcdSurfaceBase *surface)
|
|||
int fd = -1;
|
||||
|
||||
xcb_connection_t *conn;
|
||||
xcb_dri3_open_reply_t *reply = NULL;
|
||||
if (surface) {
|
||||
if (surface->platform == VK_ICD_WSI_PLATFORM_XLIB)
|
||||
conn = XGetXCBConnection(((VkIcdSurfaceXlib *)surface)->dpy);
|
||||
|
|
@ -268,7 +269,6 @@ create_display_fd_xcb(VkIcdSurfaceBase *surface)
|
|||
xcb_screen_t *screen = iter.data;
|
||||
|
||||
xcb_dri3_open_cookie_t cookie;
|
||||
xcb_dri3_open_reply_t *reply;
|
||||
cookie = xcb_dri3_open(conn, screen->root, None);
|
||||
reply = xcb_dri3_open_reply(conn, cookie, NULL);
|
||||
if (!reply)
|
||||
|
|
|
|||
|
|
@ -4480,7 +4480,7 @@ build_nir_tex_op_ms_resolve(struct nir_builder *b,
|
|||
|
||||
const bool is_int = glsl_base_type_is_integer(tex_type);
|
||||
|
||||
nir_ssa_def *tmp;
|
||||
nir_ssa_def *tmp = NULL;
|
||||
nir_ssa_def *tex_deref = &nir_build_deref_var(b, sampler)->dest.ssa;
|
||||
for (uint32_t i = 0; i < src_samples; i++) {
|
||||
nir_ssa_def *s =
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue