softpipe: add a better fake implementation of fences
authorMarek Olšák <maraeo@gmail.com>
Wed, 1 Jun 2011 22:50:45 +0000 (00:50 +0200)
committerMarek Olšák <maraeo@gmail.com>
Thu, 2 Jun 2011 14:50:46 +0000 (16:50 +0200)
commitbddf275db44695e3850c4b62b8f4b77d93299ae9
tree53038f1c9fc6b45365222e4faccb2b275c81053a
parentf62e1f41b4d6047e72222aebbb0b55a508269b0c
softpipe: add a better fake implementation of fences

The flush function, when asked for, should not return a NULL fence.

NULL can only be returned if fences are not implemented, and st/mesa
doesn't call any of the fence functions if it receives a NULL fence
(because some drivers don't even set the fence hooks).

ARB_sync is exposed if fence_finish is set.
src/gallium/drivers/softpipe/sp_fence.c
src/gallium/drivers/softpipe/sp_flush.c