i965: Use UW-typed immediate in multiply inst.
authorMatt Turner <mattst88@gmail.com>
Wed, 3 Jun 2015 00:46:38 +0000 (17:46 -0700)
committerMatt Turner <mattst88@gmail.com>
Wed, 3 Jun 2015 17:47:41 +0000 (10:47 -0700)
commitd46d04529b9c1e55b4c3b65a7078bbbd7ab1a810
tree150aa74a8f99bcd915aee57a9c5d7281a93daa50
parent54a70a8ef20a9a875f0828acb42332cf69217ff5
i965: Use UW-typed immediate in multiply inst.

Some hardware reads only the low 16-bits even if the type is UD, but
other hardware like Cherryview can't handle this.

Fixes spec@arb_gpu_shader5@execution@sampler_array_indexing@fs-simple on
Cherryview.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=90830
Reviewed-by: Neil Roberts <neil@linux.intel.com>
Reviewed-by: Chris Forbes <chrisf@ijw.co.nz>
src/mesa/drivers/dri/i965/brw_fs_generator.cpp
src/mesa/drivers/dri/i965/brw_vec4_generator.cpp