diff options
author | Gurchetan Singh <[email protected]> | 2019-09-25 09:25:46 -0700 |
---|---|---|
committer | Gurchetan Singh <[email protected]> | 2019-10-02 17:57:40 -0700 |
commit | 2899bbe37ac8399503a735db68a41071811ded85 (patch) | |
tree | c67a99fd8edad1012ab25134a5b81b4df483d804 /src | |
parent | 1c6fdbc83cf1094c735b964902da421978005cb3 (diff) |
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 <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/gallium/winsys/virgl/drm/virgl_drm_winsys.c | 2 | ||||
-rw-r--r-- | src/gallium/winsys/virgl/drm/virgl_drm_winsys.h | 1 |
2 files changed, 0 insertions, 3 deletions
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; |