i915g: Don't bind 0-length programs
authorStéphane Marchesin <marcheu@chromium.org>
Thu, 4 Oct 2012 04:06:56 +0000 (21:06 -0700)
committerStéphane Marchesin <marcheu@chromium.org>
Thu, 4 Oct 2012 19:39:06 +0000 (12:39 -0700)
commit8c28a9bd733f5b51ab459c6bc626a5aaac5a6c0c
treeaedf0ae173cc0481a52948caedc945bd8cee388e
parent91d84096497ff538f55591f7e6bb0b563726db8d
i915g: Don't bind 0-length programs

Since we started doing fixups for different render target formats,
this has been an issue. Instead just don't do anything, when the
program gets emitted later it'll get the correct fixup.

Fixes a bunch of piglit tests.
src/gallium/drivers/i915/i915_state_emit.c