mesa: don't compile integer clear shaders for unsupported APIs
authorOliver McFadden <oliver.mcfadden@linux.intel.com>
Sat, 26 May 2012 07:13:07 +0000 (10:13 +0300)
committerOliver McFadden <oliver.mcfadden@linux.intel.com>
Wed, 30 May 2012 12:20:34 +0000 (15:20 +0300)
commitff3eef1affd0d3b56d4ce689947947be97c5d0f6
tree5d570b1c2e0b9f7dc90b013dab06cf6a63fc446b
parent47b64c9290d54f78e5a20e378593977cd47e285f
mesa: don't compile integer clear shaders for unsupported APIs

Discovered while running the Khronos conformance test suite and
receiving "implementation error: meta program compile failed."

This bug was recently introduced by the i965 clear patch set and would
only be detected while using the ES2 API and only on gen6+ hardware.

Signed-off-by: Oliver McFadden <oliver.mcfadden@linux.intel.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/common/meta.c