[Mesa-dev] [PATCH 19/30] r600: add shader rat_base information
Dave Airlie
airlied at gmail.com
Thu Mar 31 07:03:48 UTC 2016
From: Dave Airlie <airlied at 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 <airlied at 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
More information about the mesa-dev
mailing list