diff options
Diffstat (limited to 'src/gallium/drivers/virgl/virgl_resource.h')
-rw-r--r-- | src/gallium/drivers/virgl/virgl_resource.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/gallium/drivers/virgl/virgl_resource.h b/src/gallium/drivers/virgl/virgl_resource.h index a69b172ef2a..86eb2322513 100644 --- a/src/gallium/drivers/virgl/virgl_resource.h +++ b/src/gallium/drivers/virgl/virgl_resource.h @@ -59,6 +59,15 @@ struct virgl_resource { /* For PIPE_BUFFER only. Data outside of this range are uninitialized. */ struct util_range valid_buffer_range; + + /* This mask indicates where the resource has been bound to, excluding + * pipe_surface binds. + * + * This is more accurate than pipe_resource::bind. Besides, + * pipe_resource::bind can be 0 with direct state access, and is not + * usable. + */ + unsigned bind_history; }; enum virgl_transfer_map_type { |