gm107/ir: don't do indirect frag shader inputs on GM107
authorIlia Mirkin <imirkin@alum.mit.edu>
Sun, 17 Jan 2016 21:24:02 +0000 (16:24 -0500)
committerIlia Mirkin <imirkin@alum.mit.edu>
Sun, 17 Jan 2016 21:37:04 +0000 (16:37 -0500)
Apparently the IPA op decided to stop working with offsets. Need to
figure out if we need to do an AL2P situation or something similar. For
now just turn it back off.

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
src/gallium/drivers/nouveau/nvc0/nvc0_screen.c

index 6f7defa35f22cfd8b518e9c2398dc4f71ea5c517..7211df94bb85eb3cf0e540160acdf11bdd604c0a 100644 (file)
@@ -298,6 +298,7 @@ nvc0_screen_get_shader_param(struct pipe_screen *pscreen, unsigned shader,
    case PIPE_SHADER_CAP_INDIRECT_OUTPUT_ADDR:
       return shader != PIPE_SHADER_FRAGMENT;
    case PIPE_SHADER_CAP_INDIRECT_INPUT_ADDR:
+      return shader != PIPE_SHADER_FRAGMENT || class_3d < GM107_3D_CLASS;
    case PIPE_SHADER_CAP_INDIRECT_TEMP_ADDR:
    case PIPE_SHADER_CAP_INDIRECT_CONST_ADDR:
       return 1;