st/mesa: make Z/S drawpix shaders independent of variants, don't use Mesa IR v2
authorMarek Olšák <marek.olsak@amd.com>
Sun, 4 Oct 2015 16:23:33 +0000 (18:23 +0200)
committerMarek Olšák <marek.olsak@amd.com>
Fri, 9 Oct 2015 20:02:18 +0000 (22:02 +0200)
commitb55b986dc9c89a3a4fb3956dcd269216f59b06ee
treebe3c0c26794c7d374acc69327a1ddcf27def74c2
parentf4ec81032bb9c1460794d3d843d0ffe47a181291
st/mesa: make Z/S drawpix shaders independent of variants, don't use Mesa IR v2

- there is no connection to user fragment shaders, so having these as
  shader variants makes no sense
- don't use Mesa IR, use TGSI
- don't create gl_fragment_program, just create the shader CSO

v2: generate exactly the same shader as before to fix llvmpipe

Reviewed-by: Dave Airlie <airlied@redhat.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
Tested-by: Brian Paul <brianp@vmware.com>
src/mesa/state_tracker/st_cb_drawpixels.c
src/mesa/state_tracker/st_cb_drawpixels.h
src/mesa/state_tracker/st_context.h
src/mesa/state_tracker/st_program.c
src/mesa/state_tracker/st_program.h