summaryrefslogtreecommitdiff
path: root/src/sna/gen4_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/gen4_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/gen4_render.c')
-rw-r--r--src/sna/gen4_render.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/sna/gen4_render.c b/src/sna/gen4_render.c
index e94fb6df..addd8389 100644
--- a/src/sna/gen4_render.c
+++ b/src/sna/gen4_render.c
@@ -1014,6 +1014,8 @@ gen4_emit_state(struct sna *sna,
{
bool flush;
+ assert(op->dst.bo->exec);
+
flush = wm_binding_table & 1;
if (kgem_bo_is_dirty(op->src.bo) || kgem_bo_is_dirty(op->mask.bo)) {
DBG(("%s: flushing dirty (%d, %d), forced? %d\n", __FUNCTION__,