diff options
author | Erik Faye-Lund <[email protected]> | 2018-09-05 14:17:24 +0100 |
---|---|---|
committer | Erik Faye-Lund <[email protected]> | 2018-09-10 10:35:32 +0200 |
commit | 80834640137228323b4c6d8e5909926e0b69bf70 (patch) | |
tree | 91f87f84bd7f440c42d5d5a62fc74432f524bfdd /src/gallium/drivers | |
parent | b9c40e492dd587e64c81b4f0c501751721fdf65e (diff) |
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 <[email protected]>
Reviewed-by: Dave Airlie <[email protected]>
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r-- | src/gallium/drivers/virgl/virgl_texture.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/gallium/drivers/virgl/virgl_texture.c b/src/gallium/drivers/virgl/virgl_texture.c index 2cee4126652..88c2f384838 100644 --- a/src/gallium/drivers/virgl/virgl_texture.c +++ b/src/gallium/drivers/virgl/virgl_texture.c @@ -311,15 +311,11 @@ virgl_texture_from_handle(struct virgl_screen *vs, const struct pipe_resource *template, struct winsys_handle *whandle) { - struct virgl_texture *tex; - uint32_t size; - - tex = CALLOC_STRUCT(virgl_texture); + struct virgl_texture *tex = CALLOC_STRUCT(virgl_texture); tex->base.u.b = *template; tex->base.u.b.screen = &vs->base; pipe_reference_init(&tex->base.u.b.reference, 1); 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); return &tex->base.u.b; |