diff options
author | Ilia Mirkin <[email protected]> | 2015-04-03 02:15:17 -0400 |
---|---|---|
committer | Rob Clark <[email protected]> | 2015-04-05 16:36:35 -0400 |
commit | bde2045fa247b4d1de98a3bc7585d1b60f9b58b7 (patch) | |
tree | c8f238125517f281751fd6b0dfbb95074099778a /src/gallium/drivers/freedreno/freedreno_resource.h | |
parent | dacf22e0a34d4dc2595f3cb0dbee52318dc9d0d7 (diff) |
freedreno: keep track of buffer valid ranges
Copies nouveau_buffer and radeon_buffer. This allows a write to proceed
to an uninitialized part of a buffer even when the GPU is using the
previously-initialized portions.
Signed-off-by: Ilia Mirkin <[email protected]>
Diffstat (limited to 'src/gallium/drivers/freedreno/freedreno_resource.h')
-rw-r--r-- | src/gallium/drivers/freedreno/freedreno_resource.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gallium/drivers/freedreno/freedreno_resource.h b/src/gallium/drivers/freedreno/freedreno_resource.h index 1539fc9ad1a..a2a540ce506 100644 --- a/src/gallium/drivers/freedreno/freedreno_resource.h +++ b/src/gallium/drivers/freedreno/freedreno_resource.h @@ -30,6 +30,7 @@ #define FREEDRENO_RESOURCE_H_ #include "util/u_double_list.h" +#include "util/u_range.h" #include "util/u_transfer.h" #include "freedreno_util.h" @@ -68,6 +69,8 @@ struct fd_resource { struct fd_resource_slice slices[MAX_MIP_LEVELS]; uint32_t timestamp; bool dirty, reading; + /* buffer range that has been initialized */ + struct util_range valid_buffer_range; struct list_head list; }; |