From: Dave Airlie <airl...@redhat.com> The RAT share space with the color outputs, so add a field to denote what the rat_base for the current shader is.
Signed-off-by: Dave Airlie <airl...@redhat.com> --- src/gallium/drivers/r600/r600_shader.c | 1 + src/gallium/drivers/r600/r600_shader.h | 1 + 2 files changed, 2 insertions(+) diff --git a/src/gallium/drivers/r600/r600_shader.c b/src/gallium/drivers/r600/r600_shader.c index df8ef3c..d8c3600 100644 --- a/src/gallium/drivers/r600/r600_shader.c +++ b/src/gallium/drivers/r600/r600_shader.c @@ -3043,6 +3043,7 @@ static int r600_shader_from_tgsi(struct r600_context *rctx, break; case TGSI_PROCESSOR_FRAGMENT: shader->two_side = key.ps.color_two_side; + shader->rat_base = key.ps.nr_cbufs; break; default: break; diff --git a/src/gallium/drivers/r600/r600_shader.h b/src/gallium/drivers/r600/r600_shader.h index 3086e8e..e25a9d3 100644 --- a/src/gallium/drivers/r600/r600_shader.h +++ b/src/gallium/drivers/r600/r600_shader.h @@ -105,6 +105,7 @@ struct r600_shader { boolean uses_doubles; boolean uses_images; + uint8_t rat_base; }; union r600_shader_key { -- 2.5.0 _______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev