diff options
author | Gurchetan Singh <[email protected]> | 2018-11-30 20:45:44 -0800 |
---|---|---|
committer | Bas Nieuwenhuizen <[email protected]> | 2018-12-19 13:29:16 +0100 |
commit | 1d3d311133f1f6aa3402e7b516646f71ec760b74 (patch) | |
tree | 3337c06e4bbbd30cb231469ec7f3190a05f57f54 /src/gallium/drivers/virgl/virgl_resource.h | |
parent | db77573d7bae90e77cfffde7c5bc9b65dc8b7fc2 (diff) |
virgl: move resource metadata into base resource
A resource is just a buffer with some metadata.
Reviewed-by: Elie Tournier <[email protected]>
Diffstat (limited to 'src/gallium/drivers/virgl/virgl_resource.h')
-rw-r--r-- | src/gallium/drivers/virgl/virgl_resource.h | 21 |
1 files changed, 1 insertions, 20 deletions
diff --git a/src/gallium/drivers/virgl/virgl_resource.h b/src/gallium/drivers/virgl/virgl_resource.h index 6b76bc26d32..28b12c317f6 100644 --- a/src/gallium/drivers/virgl/virgl_resource.h +++ b/src/gallium/drivers/virgl/virgl_resource.h @@ -46,17 +46,8 @@ struct virgl_resource_metadata struct virgl_resource { struct u_resource u; - struct virgl_hw_res *hw_res; boolean clean; -}; - -struct virgl_buffer { - struct virgl_resource base; - struct virgl_resource_metadata metadata; -}; - -struct virgl_texture { - struct virgl_resource base; + struct virgl_hw_res *hw_res; struct virgl_resource_metadata metadata; }; @@ -86,16 +77,6 @@ static inline struct virgl_resource *virgl_resource(struct pipe_resource *r) return (struct virgl_resource *)r; } -static inline struct virgl_buffer *virgl_buffer(struct pipe_resource *r) -{ - return (struct virgl_buffer *)r; -} - -static inline struct virgl_texture *virgl_texture(struct pipe_resource *r) -{ - return (struct virgl_texture *)r; -} - static inline struct virgl_transfer *virgl_transfer(struct pipe_transfer *trans) { return (struct virgl_transfer *)trans; |