i965: Add an assertion to brwProgramStringNotify.
authorPaul Berry <stereotype441@gmail.com>
Tue, 2 Jul 2013 15:02:47 +0000 (08:02 -0700)
committerPaul Berry <stereotype441@gmail.com>
Mon, 8 Jul 2013 21:18:02 +0000 (14:18 -0700)
commit292368570a13501dfa95b1b0dd70966caf6ffc6b
tree200c2b359be96e11a893c484137f96716e6883a9
parentba7b60d3e4a89558dc1b514e7611f17d238a2abc
i965: Add an assertion to brwProgramStringNotify.

driver->ProgramStringNotify is only called for ARB programs, fixed
function vertex programs, and ir_to_mesa (which isn't used by the i965
back-end).  Therefore, even after geometry shaders are added,
brwProgramStringNotify should only ever be called with a target of
GL_VERTEX_PROGRAM_ARB or GL_FRAGMENT_PROGRAM_ARB.

This patch adds an assertion to clarify that.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_program.c