OSDN Git Service

i965: fix varying output setup
authorTimothy Arceri <timothy.arceri@collabora.com>
Fri, 22 Jul 2016 13:19:09 +0000 (23:19 +1000)
committerTimothy Arceri <timothy.arceri@collabora.com>
Fri, 22 Jul 2016 14:04:10 +0000 (00:04 +1000)
commita2b3c146d2017a626be66dcf43753d545e902c52
tree67281284540bb866d8d2c032aa693dd78203cb13
parentc2801f92726d9374b2ca2273347671f05ffa7d84
i965: fix varying output setup

Since 7f53fead5c we treat every location as using all
four components so we only need special handling for
doubles when they cross multiple locations.

This fixes a crash in GL45-CTS.enhanced_layouts.varying_locations
where the outputs array would overflow when a dmat2 was stored at
the max varying location i.e 30.

Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
src/mesa/drivers/dri/i965/brw_fs_nir.cpp