mesa/src
Boyan Ding 2a3c4c6bc3 nvc0/ir: Allow 0/1 immediate value as source of OP_VOTE
Implementation of readFirstInvocationARB() on nvidia hardware needs a
ballotARB(true) used to decide the first active thread. This expressed
in gm107 asm as (supposing output is $r0):
	vote any $r0 0x1 0x1

To model the always true input, which corresponds to the second 0x1
above, we make OP_VOTE accept immediate value 0/1 and emit "0x1" and
"not 0x1" in the src field respectively.

v2: Make sure that asImm() is not NULL (Samuel Pitoiset)

v3: (Ilia Mirkin)
Make the handling more symmetric with predicate version in gm107
Use i->getSrc(s)

Signed-off-by: Boyan Ding <boyan.j.ding@gmail.com>
Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
2017-04-13 02:24:59 -04:00
..
amd radv: Disable primitive restart for non-indexed draws 2017-04-12 20:58:41 +02:00
compiler glsl: use the BA1 macro for textureQueryLevels() 2017-04-11 10:24:57 +02:00
egl Android: drop Android 4.4 (KitKat) support 2017-03-22 17:53:31 +00:00
gallium nvc0/ir: Allow 0/1 immediate value as source of OP_VOTE 2017-04-13 02:24:59 -04:00
gbm gbm: Assert modifiers and count are copacetic 2017-04-09 09:29:57 -07:00
getopt Introduce .editorconfig 2016-08-31 17:06:54 -07:00
glx glx: silence uninitialized var warning 2017-04-07 13:46:44 -06:00
gtest gtest: Update to 1.8.0. 2017-01-20 11:40:52 -08:00
hgl glapi/hgl: remove the final user of _glapi_check_table() 2016-10-06 15:03:46 +01:00
intel anv: Only define wsi_cbs when VK_USE_PLATFORM_WAYLAND_KHR defined 2017-04-12 11:00:39 -07:00
loader loader: use drmGetDevice[s]2 API 2017-03-15 11:37:55 +00:00
mapi mesa: add GL_ARB_shader_ballot boilerplate 2017-04-05 15:25:40 +02:00
mesa st/mesa: add some _mesa_is_winsys_fbo() assertions 2017-04-12 21:13:23 -06:00
util util: fix MSVC warning in u_align_u32() 2017-04-03 13:09:05 -06:00
vulkan vulkan/wsi/wayland: Pass damage through to the compositor 2017-04-03 13:51:08 -07:00
Makefile.am intel/vulkan: Get rid of recursive make 2017-03-13 11:16:35 +00:00
SConscript