mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-23 09:00:10 +01:00
virgl: remove dead code
We don't use the size we calculate in this function, so let's just drop the calculation Signed-off-by: Erik Faye-Lund <erik.faye-lund@collabora.com> Reviewed-by: Dave Airlie <airlied@redhat.com>
This commit is contained in:
parent
b9c40e492d
commit
8083464013
1 changed files with 1 additions and 5 deletions
|
|
@ -311,15 +311,11 @@ virgl_texture_from_handle(struct virgl_screen *vs,
|
||||||
const struct pipe_resource *template,
|
const struct pipe_resource *template,
|
||||||
struct winsys_handle *whandle)
|
struct winsys_handle *whandle)
|
||||||
{
|
{
|
||||||
struct virgl_texture *tex;
|
struct virgl_texture *tex = CALLOC_STRUCT(virgl_texture);
|
||||||
uint32_t size;
|
|
||||||
|
|
||||||
tex = CALLOC_STRUCT(virgl_texture);
|
|
||||||
tex->base.u.b = *template;
|
tex->base.u.b = *template;
|
||||||
tex->base.u.b.screen = &vs->base;
|
tex->base.u.b.screen = &vs->base;
|
||||||
pipe_reference_init(&tex->base.u.b.reference, 1);
|
pipe_reference_init(&tex->base.u.b.reference, 1);
|
||||||
tex->base.u.vtbl = &virgl_texture_vtbl;
|
tex->base.u.vtbl = &virgl_texture_vtbl;
|
||||||
vrend_resource_layout(tex, &size);
|
|
||||||
|
|
||||||
tex->base.hw_res = vs->vws->resource_create_from_handle(vs->vws, whandle);
|
tex->base.hw_res = vs->vws->resource_create_from_handle(vs->vws, whandle);
|
||||||
return &tex->base.u.b;
|
return &tex->base.u.b;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue