summaryrefslogtreecommitdiff
path: root/src/sna/gen5_render.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2013-06-13 11:18:42 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2013-06-13 11:18:42 +0100
commit5f20be82563176c45a31a9676b68a3455566bc67 (patch)
tree57a3a7cfc525a8ba7c030b10df39a054ab112778 /src/sna/gen5_render.c
parent6655cc1d9735a8433994c762583753b12e2125b4 (diff)
sna/gen2+: Promote a conditional dirty into an assertion
If the target bo is not bound when we start to emit the composite state for the operation, we are screwed. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/sna/gen5_render.c')
-rw-r--r--src/sna/gen5_render.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/sna/gen5_render.c b/src/sna/gen5_render.c
index 2de7eb82..5870c021 100644
--- a/src/sna/gen5_render.c
+++ b/src/sna/gen5_render.c
@@ -1009,6 +1009,8 @@ gen5_emit_state(struct sna *sna,
const struct sna_composite_op *op,
uint16_t offset)
{
+ assert(op->dst.bo->exec);
+
if (kgem_bo_is_dirty(op->src.bo) || kgem_bo_is_dirty(op->mask.bo)) {
DBG(("%s: flushing dirty (%d, %d)\n", __FUNCTION__,
kgem_bo_is_dirty(op->src.bo),