i965: Drop a bunch of downcasting and upcasting of gl_program pointers.
authorKenneth Graunke <kenneth@whitecape.org>
Mon, 23 Oct 2017 02:28:35 +0000 (19:28 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Tue, 24 Oct 2017 23:14:02 +0000 (16:14 -0700)
commit16096e9119d7f68c0382cf802ff7f3a93668ede9
tree05f04000019352adcf50cfcacbbab28978e882a3
parent90ed2a10bb3b3c3560a9c6874663ab2026993b02
i965: Drop a bunch of downcasting and upcasting of gl_program pointers.

We have a gl_program and we want a gl_program.  There's no point in
converting to brw_program and back again.  This probably made more
sense in the old days before Tim dropped a layer of subclassing.

Reviewed-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
src/mesa/drivers/dri/i965/genX_state_upload.c