diff --git a/src/gallium/frontends/dri/loader_dri3_helper.c b/src/gallium/frontends/dri/loader_dri3_helper.c index 37970f4fa33..7b0c4eacc0c 100644 --- a/src/gallium/frontends/dri/loader_dri3_helper.c +++ b/src/gallium/frontends/dri/loader_dri3_helper.c @@ -1611,7 +1611,7 @@ dri3_alloc_render_buffer(struct loader_dri3_drawable *draw, unsigned int fourcc, cookie_pix = xcb_dri3_pixmap_from_buffer_checked(draw->conn, pixmap, draw->drawable, - buffer->size, + 0, width, height, buffer->strides[0], depth, buffer->cpp * 8, buffer_fds[0]); diff --git a/src/gallium/frontends/dri/loader_dri3_helper.h b/src/gallium/frontends/dri/loader_dri3_helper.h index 4da19d73090..26f138d1b83 100644 --- a/src/gallium/frontends/dri/loader_dri3_helper.h +++ b/src/gallium/frontends/dri/loader_dri3_helper.h @@ -71,7 +71,6 @@ struct loader_dri3_buffer { bool reallocate; /* Buffer should be reallocated and not reused */ uint32_t num_planes; - uint32_t size; int strides[4]; int offsets[4]; uint64_t modifier;