summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/i965/brw_curbe.c
diff options
context:
space:
mode:
authorTimothy Arceri <timothy.arceri@collabora.com>2016-10-05 16:45:27 +1100
committerTimothy Arceri <timothy.arceri@collabora.com>2016-10-06 16:04:09 +1100
commit7627fbd9b0ca5eb39acb4f0a2ce9b03c90931ebc (patch)
treea668bb89801de731937da5149495902837fb1d0c /src/mesa/drivers/dri/i965/brw_curbe.c
parent7ef8286487562e1e8678ccc514e4054a682c0c89 (diff)
downloadexternal_mesa3d-7627fbd9b0ca5eb39acb4f0a2ce9b03c90931ebc.zip
external_mesa3d-7627fbd9b0ca5eb39acb4f0a2ce9b03c90931ebc.tar.gz
external_mesa3d-7627fbd9b0ca5eb39acb4f0a2ce9b03c90931ebc.tar.bz2
i965: get inputs read from nir info
This is a step towards dropping the GLSL IR version of do_set_program_inouts() in i965 and moving towards native nir support. This is important because we want to eventually convert to nir and use its optimisations passes before we can call this GLSL IR pass. Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_curbe.c')
-rw-r--r--src/mesa/drivers/dri/i965/brw_curbe.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_curbe.c b/src/mesa/drivers/dri/i965/brw_curbe.c
index 9100a8f..7f9594c 100644
--- a/src/mesa/drivers/dri/i965/brw_curbe.c
+++ b/src/mesa/drivers/dri/i965/brw_curbe.c
@@ -50,6 +50,7 @@
*/
+#include "compiler/nir/nir.h"
#include "main/context.h"
#include "main/macros.h"
#include "main/enums.h"
@@ -324,7 +325,8 @@ emit:
* BRW_NEW_FRAGMENT_PROGRAM
*/
if (brw->gen == 4 && !brw->is_g4x &&
- (brw->fragment_program->Base.InputsRead & (1 << VARYING_SLOT_POS))) {
+ (brw->fragment_program->Base.nir->info.inputs_read &
+ (1 << VARYING_SLOT_POS))) {
BEGIN_BATCH(2);
OUT_BATCH(_3DSTATE_GLOBAL_DEPTH_OFFSET_CLAMP << 16 | (2 - 2));
OUT_BATCH(0);