From: Gurchetan Singh Date: Wed, 25 Sep 2019 16:25:46 +0000 (-0700) Subject: virgl: remove stride from virgl_hw_res X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2899bbe37ac8399503a735db68a41071811ded85;p=mesa.git virgl: remove stride from virgl_hw_res It's not used anywhere, and stride isn't really an intrinsic property of a GEM buffer. Reviewed by: Robert Tarasov --- diff --git a/src/gallium/winsys/virgl/drm/virgl_drm_winsys.c b/src/gallium/winsys/virgl/drm/virgl_drm_winsys.c index cc4371fb5fd..741064a958c 100644 --- a/src/gallium/winsys/virgl/drm/virgl_drm_winsys.c +++ b/src/gallium/winsys/virgl/drm/virgl_drm_winsys.c @@ -190,7 +190,6 @@ virgl_drm_winsys_resource_create(struct virgl_winsys *qws, res->res_handle = createcmd.res_handle; res->bo_handle = createcmd.bo_handle; res->size = size; - res->stride = stride; pipe_reference_init(&res->reference, 1); p_atomic_set(&res->external, false); p_atomic_set(&res->num_cs_references, 0); @@ -374,7 +373,6 @@ virgl_drm_winsys_resource_create_handle(struct virgl_winsys *qws, res->res_handle = info_arg.res_handle; res->size = info_arg.size; - res->stride = info_arg.stride; pipe_reference_init(&res->reference, 1); p_atomic_set(&res->external, true); res->num_cs_references = 0; diff --git a/src/gallium/winsys/virgl/drm/virgl_drm_winsys.h b/src/gallium/winsys/virgl/drm/virgl_drm_winsys.h index 9c9d0a5a708..3a2c476a00b 100644 --- a/src/gallium/winsys/virgl/drm/virgl_drm_winsys.h +++ b/src/gallium/winsys/virgl/drm/virgl_drm_winsys.h @@ -41,7 +41,6 @@ struct virgl_hw_res { int num_cs_references; uint32_t size; void *ptr; - uint32_t stride; struct virgl_resource_cache_entry cache_entry; uint32_t bind;