mesa: Don't call driver when there is no compute work
authorJordan Justen <jordan.l.justen@intel.com>
Tue, 16 Feb 2016 16:21:22 +0000 (08:21 -0800)
committerJordan Justen <jordan.l.justen@intel.com>
Tue, 16 Feb 2016 17:25:20 +0000 (09:25 -0800)
commitf28d80fabfca97b24b3e716e8fb1836abdc32643
tree1d0b6cd9979a6e60dcf7ffb9519a421201135406
parent8514c75a26ec2a83784ea9063ed5e6587184832c
mesa: Don't call driver when there is no compute work

The ARB_compute_shader spec says:

  "If the work group count in any dimension is zero, no work groups
   are dispatched."

Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
src/mesa/main/compute.c