summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/freedreno/freedreno_surface.c
diff options
context:
space:
mode:
authorRob Clark <[email protected]>2017-11-20 15:34:40 -0500
committerRob Clark <[email protected]>2017-12-17 12:41:32 -0500
commitd848bee50faa98af493975c28377712c04d72277 (patch)
treeac0f6b502a970b96f7366c3b7aae300ac30372c2 /src/gallium/drivers/freedreno/freedreno_surface.c
parentf20013a11906d92feb07206b903c83d5d522747d (diff)
freedreno: staging upload transfers
In the busy && !needs_flush case, we can support a DISCARD_RANGE upload using a staging buffer. This is a bit different from the case of mid- batch uploads which require us to shadow the whole resource (because later draws in an earlier tile happen before earlier draws in a later tile). Signed-off-by: Rob Clark <[email protected]>
Diffstat (limited to 'src/gallium/drivers/freedreno/freedreno_surface.c')
-rw-r--r--src/gallium/drivers/freedreno/freedreno_surface.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/gallium/drivers/freedreno/freedreno_surface.c b/src/gallium/drivers/freedreno/freedreno_surface.c
index 90433934345..5ebc4937ed8 100644
--- a/src/gallium/drivers/freedreno/freedreno_surface.c
+++ b/src/gallium/drivers/freedreno/freedreno_surface.c
@@ -44,7 +44,6 @@ fd_create_surface(struct pipe_context *pctx,
if (!surface)
return NULL;
- debug_assert(ptex->target != PIPE_BUFFER);
debug_assert(surf_tmpl->u.tex.first_layer == surf_tmpl->u.tex.last_layer);
struct pipe_surface *psurf = &surface->base;