nv50: VP_RESULT_MAP_SIZE has to be positive
authorIlia Mirkin <imirkin@alum.mit.edu>
Sun, 12 Jan 2014 02:04:52 +0000 (21:04 -0500)
committerMaarten Lankhorst <maarten.lankhorst@canonical.com>
Mon, 27 Jan 2014 15:40:42 +0000 (16:40 +0100)
commit006095b38af8ce80c678941d3fbe9b9509067c3a
treef07b8fd7dbfd29ebeb1db463a14a8bdeb8d36be7
parentc4adbd5a579a0b5952674106c1a4e0420209b321
nv50: VP_RESULT_MAP_SIZE has to be positive

Make sure that we never try to use a 0-sized map. This can happen when
using a gp, so add a dummy mapping when computing vp_gp_mapping in that
case.

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