mesa/st: Tie depth_clamp code into other shaders (GS and TES)
authorGert Wollny <gert.wollny@collabora.com>
Thu, 25 Jul 2019 08:35:46 +0000 (10:35 +0200)
committerGert Wollny <gw.fossdev@gmail.com>
Thu, 1 Aug 2019 05:58:53 +0000 (05:58 +0000)
commit57361d89fa1085b953ef7618817f752c3cc824ef
tree8bfcb3225516ef3db88666c11cad810631758923
parentd81ba38b02cb1ef8f87b5551e6d668fa245e138e
mesa/st: Tie depth_clamp code into other shaders (GS and TES)

v2: Use file scope defined depth_range_state  in common
v3: - don't use the one_shader_variant property, as this is
      not correct (Marek)
    - also use tests on available shader stages to enable
      depth_clamp lowering
v4: Don't use key.st, use st directly (Marek)

Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Reviewed-by: Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/mesa/state_tracker/st_atom_shader.c
src/mesa/state_tracker/st_program.c
src/mesa/state_tracker/st_program.h