diff options
Diffstat (limited to 'src/gallium/drivers/freedreno/freedreno_resource.h')
-rw-r--r-- | src/gallium/drivers/freedreno/freedreno_resource.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/gallium/drivers/freedreno/freedreno_resource.h b/src/gallium/drivers/freedreno/freedreno_resource.h index 539470c2b8b..2a2a6c2aa17 100644 --- a/src/gallium/drivers/freedreno/freedreno_resource.h +++ b/src/gallium/drivers/freedreno/freedreno_resource.h @@ -31,7 +31,6 @@ #include "util/list.h" #include "util/u_range.h" -#include "util/u_transfer.h" #include "freedreno_batch.h" #include "freedreno_util.h" @@ -64,7 +63,7 @@ struct fd_resource_slice { struct set; struct fd_resource { - struct u_resource base; + struct pipe_resource base; struct fd_bo *bo; uint32_t cpp; enum pipe_format internal_format; @@ -144,7 +143,7 @@ fd_transfer(struct pipe_transfer *ptrans) static inline struct fd_resource_slice * fd_resource_slice(struct fd_resource *rsc, unsigned level) { - assert(level <= rsc->base.b.last_level); + assert(level <= rsc->base.last_level); return &rsc->slices[level]; } |