nv30: report the correct max varying limit
PATCH 1/1 nv30: report the correct max varying limit
nvfx_fragprog_assign_generic only allows for up to 10/8 texcoords for nv40/nv30. This fixes compilation of the varying-packing tests (although they still fail).
Signed-off-by Ilia Mirkin <[email protected]>
Cc 9.1 9.2 10.0 <[email protected]>
--- src/gallium/drivers/nouveau/nv30/nv30_screen.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
src/gallium/drivers/nouveau/nv30/nv30_screen.c +1 -1
@@ -219,7 +219,7 @@ nv30_screen_get_shader_param(struct pipe_screen *pscreen, unsigned shader,case PIPE_SHADER_CAP_MAX_CONTROL_FLOW_DEPTH :return 0 ;case PIPE_SHADER_CAP_MAX_INPUTS : -return (eng3d->oclass >=NV40_3D_CLASS ) ?12 :10 ; +return (eng3d->oclass >=NV40_3D_CLASS ) ?10 :8 ;case PIPE_SHADER_CAP_MAX_CONSTS :return (eng3d->oclass >=NV40_3D_CLASS ) ?224 :32 ;case PIPE_SHADER_CAP_MAX_CONST_BUFFERS :
Signature · 1 line
1.8.3.2