radeonsi: remove unused r600_memory_object::offset
authorMarek Olšák <marek.olsak@amd.com>
Fri, 22 Jun 2018 02:04:33 +0000 (22:04 -0400)
committerMarek Olšák <marek.olsak@amd.com>
Mon, 25 Jun 2018 22:33:58 +0000 (18:33 -0400)
The real offset is passed through resource_from_memobj.

Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
src/gallium/drivers/radeonsi/si_pipe.h
src/gallium/drivers/radeonsi/si_texture.c

index a4da98c63699c6366fa95b2f60fb6242fd97c123..deceb44b66cf7d2ff7caaa8abf54d39b32784e47 100644 (file)
@@ -390,7 +390,6 @@ struct r600_memory_object {
        struct pipe_memory_object       b;
        struct pb_buffer                *buf;
        uint32_t                        stride;
-       uint32_t                        offset;
 };
 
 /* Saved CS data for debugging features. */
index 450e819a311f5fa064618dfaf71d675cf1e9ab43..7b745f7477afcf26d5c24e2dda20130313e72bd0 100644 (file)
@@ -2409,7 +2409,6 @@ si_memobj_from_handle(struct pipe_screen *screen,
        memobj->b.dedicated = dedicated;
        memobj->buf = buf;
        memobj->stride = stride;
-       memobj->offset = offset;
 
        return (struct pipe_memory_object *)memobj;