gallium: add new LOD opcode
authorRoland Scheidegger <sroland@vmware.com>
Thu, 28 Sep 2017 01:45:04 +0000 (03:45 +0200)
committerRoland Scheidegger <sroland@vmware.com>
Sat, 30 Sep 2017 00:58:09 +0000 (02:58 +0200)
commit740a1618c34c095f85d4929e11ef107d560f7450
treeeb956477a8c8d7dbc3a2d04282620f10e17ef703
parentd5e7ce28b5f6e0a7e4857d1e56143c00eba0c265
gallium: add new LOD opcode

The operation performed is all the same as LODQ, but with the usual
differences between dx10 and GL texture opcodes, that is separate resource
and sampler indices (plus result swizzling, and setting z/w channels
to zero).

Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
Acked-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
src/gallium/auxiliary/gallivm/lp_bld_tgsi_soa.c
src/gallium/auxiliary/tgsi/tgsi_exec.c
src/gallium/auxiliary/tgsi/tgsi_info_opcodes.h
src/gallium/docs/source/tgsi.rst
src/gallium/include/pipe/p_shader_tokens.h