OSDN Git Service

i965/gen4: Fix crash with fragment programs and texture rectangle.
authorEric Anholt <eric@anholt.net>
Sun, 18 Nov 2012 21:18:03 +0000 (13:18 -0800)
committerEric Anholt <eric@anholt.net>
Tue, 20 Nov 2012 06:33:44 +0000 (22:33 -0800)
commit1665af3066f3d58c42e9d5b13098f13615a7672c
tree8b88ea89e6b5eb44887a5bab67c74b405ee7da66
parentd411bbd5bd895617e265e023213895100e4509ef
i965/gen4: Fix crash with fragment programs and texture rectangle.

This was a regression in the brw_fs_fp.cpp change.  We just need to return
something good enough to get the IR generation to the end without crashing,
but ir->type isn't initialized and we wanted something of the coordinate's
type anyway.

Fixes around 30 piglit cases on my ilk system in drawpixels and framebuffer
blit.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=56962
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_fs_visitor.cpp