mesa/src/intel
Kenneth Graunke 97ebb896af intel/compiler: Do interpolateAtOffset coordinate scaling in NIR
In our source languages, interpolateAtOffset() takes a floating point
offset in the range [-0.5, +0.5].  However, the hardware takes integer
valued offsets in the range [-8, 7], in units of 1/16th of a pixel.

So, we need to multiply and clamp the coordinates.  We were doing this
in the FS backend, but with the advent of IBC, I'd like to avoid doing
it twice.  This patch instead moves the lowering to NIR so we can reuse
it across both backends.

v2: Use nir_shader_instructions_pass (suggested by Eric Anholt).

Reviewed-by: Caio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
Reviewed-by: Matt Turner <mattst88@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6193>
2020-11-18 23:26:53 +00:00
..
blorp intel/blorp: Delete clear color conversions during copies 2020-11-13 21:01:10 +00:00
common intel/mi_builder: Support gen11 command-streamer based register offsets 2020-10-27 16:11:12 -07:00
compiler intel/compiler: Do interpolateAtOffset coordinate scaling in NIR 2020-11-18 23:26:53 +00:00
dev intel: remove dead code 2020-11-02 19:58:56 +00:00
genxml intel: remove dead code 2020-11-02 19:58:56 +00:00
isl isl: Make public the list of modifiers 2020-11-17 10:36:45 -08:00
perf intel: remove dead code 2020-11-02 19:58:56 +00:00
tools intel/dump_gpu: add support for MMAP_OFFSET ioctl 2020-11-10 13:25:11 +00:00
vulkan Revert "anv/image: Define anv_image_get_aux_addr (v3)" 2020-11-17 23:27:42 -06:00
Android.blorp.mk intel: android: remove libdrm_intel requirement 2017-03-30 19:07:23 +01:00
Android.common.mk intel: split driver/device UUID generators 2020-10-07 11:11:23 +03:00
Android.compiler.mk android: fix build issues with brw_nir_trig_workarounds.c 2017-10-04 07:39:05 +03:00
Android.dev.mk intel: add identifier for debug purposes 2020-05-20 15:58:22 +00:00
Android.genxml.mk genxml: drop gen10 2020-10-20 07:56:40 +00:00
Android.isl.mk intel/isl: Don't generate Gen10-specific functions 2020-10-15 09:29:54 -07:00
Android.mk i965: extract performance query metrics 2019-04-17 14:10:42 +01:00
Android.perf.mk i965: extract performance query metrics 2019-04-17 14:10:42 +01:00
Android.vulkan.mk anv: Don't generate Gen10-specific functions 2020-10-15 09:29:54 -07:00
Makefile.perf.am i965: extract performance query metrics 2019-04-17 14:10:42 +01:00
Makefile.sources genxml: drop gen10 2020-10-20 07:56:40 +00:00
meson.build meson: only build imgui when needed 2019-11-25 07:51:56 +00:00