prog->interps = info->bin.fixupData;
prog->max_gpr = MAX2(4, (info->bin.maxGPR >> 1) + 1);
prog->tls_space = info->bin.tlsSpace;
-
+ prog->mul_zero_wins = info->io.mul_zero_wins;
prog->vp.need_vertex_id = info->io.vertexId < PIPE_MAX_SHADER_INPUTS;
prog->vp.clip_enable = (1 << info->io.clipDistances) - 1;
unsigned num_syms;
} cp;
+ bool mul_zero_wins;
+
void *fixups; /* relocation records */
void *interps; /* interpolation records */
case PIPE_CAP_STRING_MARKER:
case PIPE_CAP_CULL_DISTANCE:
case PIPE_CAP_TGSI_ARRAY_COMPONENTS:
+ case PIPE_CAP_TGSI_MUL_ZERO_WINS:
return 1;
case PIPE_CAP_SEAMLESS_CUBE_MAP:
return 1; /* class_3d >= NVA0_3D_CLASS; */
case PIPE_CAP_NATIVE_FENCE_FD:
case PIPE_CAP_GLSL_OPTIMIZE_CONSERVATIVELY:
case PIPE_CAP_TGSI_FS_FBFETCH:
- case PIPE_CAP_TGSI_MUL_ZERO_WINS:
return 0;
case PIPE_CAP_VENDOR_ID:
uint8_t prim_size;
uint16_t scissor;
bool seamless_cube_map;
+ bool mul_zero_wins;
};
struct nv50_screen {
PUSH_DATA (push, nv50->seamless_cube_map ? NVA0_3D_TEX_MISC_SEAMLESS_CUBE_MAP : 0);
}
+ if (nv50->vertprog->mul_zero_wins != nv50->state.mul_zero_wins) {
+ nv50->state.mul_zero_wins = nv50->vertprog->mul_zero_wins;
+ BEGIN_NV04(push, NV50_3D(UNK1690), 1);
+ PUSH_DATA (push, 0x00010000 * !!nv50->state.mul_zero_wins);
+ }
+
if (nv50->vbo_fifo) {
nv50_push_vbo(nv50, info);
push->kick_notify = nv50_default_kick_notify;