diff options
author | Jonathan Gray <jsg@cvs.openbsd.org> | 2021-07-22 10:17:30 +0000 |
---|---|---|
committer | Jonathan Gray <jsg@cvs.openbsd.org> | 2021-07-22 10:17:30 +0000 |
commit | ca11beabae33eb59fb981b8adf50b1d47a2a98f0 (patch) | |
tree | 3e4691a396e6e54cd54224a190663d5cf976625b /lib/mesa/src/gallium/drivers/llvmpipe/lp_texture.h | |
parent | 27c8a50e8bbde7d28b1fc46d715a4c469e24f2c4 (diff) |
Import Mesa 21.1.5
Diffstat (limited to 'lib/mesa/src/gallium/drivers/llvmpipe/lp_texture.h')
-rw-r--r-- | lib/mesa/src/gallium/drivers/llvmpipe/lp_texture.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/lib/mesa/src/gallium/drivers/llvmpipe/lp_texture.h b/lib/mesa/src/gallium/drivers/llvmpipe/lp_texture.h index 3d315bb9a..ba2cdffc8 100644 --- a/lib/mesa/src/gallium/drivers/llvmpipe/lp_texture.h +++ b/lib/mesa/src/gallium/drivers/llvmpipe/lp_texture.h @@ -90,6 +90,11 @@ struct llvmpipe_resource unsigned id; /**< temporary, for debugging */ + unsigned sample_stride; + + uint64_t size_required; + uint64_t backing_offset; + bool backable; #ifdef DEBUG /** for linked list */ struct llvmpipe_resource *prev, *next; @@ -194,6 +199,12 @@ llvmpipe_resource_stride(struct pipe_resource *resource, return lpr->row_stride[level]; } +static inline unsigned +llvmpipe_sample_stride(struct pipe_resource *resource) +{ + struct llvmpipe_resource *lpr = llvmpipe_resource(resource); + return lpr->sample_stride; +} void * llvmpipe_resource_map(struct pipe_resource *resource, @@ -236,4 +247,12 @@ llvmpipe_is_resource_referenced( struct pipe_context *pipe, unsigned llvmpipe_get_format_alignment(enum pipe_format format); +void * +llvmpipe_transfer_map_ms( struct pipe_context *pipe, + struct pipe_resource *resource, + unsigned level, + unsigned usage, + unsigned sample, + const struct pipe_box *box, + struct pipe_transfer **transfer ); #endif /* LP_TEXTURE_H */ |