virgl: remove stride from virgl_hw_res
authorGurchetan Singh <gurchetansingh@chromium.org>
Wed, 25 Sep 2019 16:25:46 +0000 (09:25 -0700)
committerGurchetan Singh <gurchetansingh@chromium.org>
Thu, 3 Oct 2019 00:57:40 +0000 (17:57 -0700)
It's not used anywhere, and stride isn't really an intrinsic
property of a GEM buffer.

Reviewed by: Robert Tarasov <tutankhamen@chromium.org>

src/gallium/winsys/virgl/drm/virgl_drm_winsys.c
src/gallium/winsys/virgl/drm/virgl_drm_winsys.h

index cc4371fb5fdd201f307bc9a3e11c3cc90fa7046a..741064a958cd2017da9694538ac86ad2385f3897 100644 (file)
@@ -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;
index 9c9d0a5a708af3699935482cb00ed46622c40527..3a2c476a00b0a53c48eba51b551ec0b1c515dd5f 100644 (file)
@@ -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;