radv: fix logic for when to flush on multiple CS emission
authorDave Airlie <airlied@redhat.com>
Sun, 19 Mar 2017 23:00:36 +0000 (09:00 +1000)
committerDave Airlie <airlied@redhat.com>
Mon, 20 Mar 2017 04:17:43 +0000 (14:17 +1000)
commite70e7cc7ffcb40f2ac6844b19a2d9b1bb26693a7
tree38b5ab446ec3ac53300637fb1610b9c7b75292ac
parentfcca6a83cddfdd7b82b9a7e0412c060d0830e3c3
radv: fix logic for when to flush on multiple CS emission

The current code evaluated to always true, we only want to flush
on the first submit. Rename the variable to do_flush, and only
emit on the first iteration.

Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Signed-off-by: Dave Airlie <airlied@redhat.com>
src/amd/vulkan/radv_device.c