mesa/src/gallium/drivers/lima
Vasily Khoruzhick 34a75ce15c lima: fix blending with min/max ops
It turns out that BLEND_MIN and BLEND_MAX in Utgard take blend factors
into account. My guess is that actual equation looks like:

OP(As * S + Ad * D, Ad) for alpha, and
OP(Cs * S + Cd * D, Cd) for color.

So we have to set S factor to 1 and D factor to 0 to be compliant with
GL spec.

Fixes following piglit tests:
spec@!opengl 1.4@blendminmax
spec@arb_blend_func_extended@arb_blend_func_extended-fbo-extended-blend
(with patch my for ES2_compatibility and EXT_blend_func_extended)

Reviewed-by: Andreas Baierl <ichgeh@imkreisrum.de>
Reviewed-by: Erico Nunes <nunes.erico@gmail.com>
Signed-off-by: Vasily Khoruzhick <anarsoul@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13873>
2021-11-29 19:31:59 +00:00
..
ci ci: temporarily disable lima CI 2021-11-17 11:40:19 +00:00
drm-shim lima: Add a noop drm-shim 2021-09-10 21:34:36 +00:00
ir lima: implement dual source blend 2021-11-29 19:31:59 +00:00
standalone lima: disasm: call util_cpu_detect() to init CPU caps 2021-11-29 18:34:58 +00:00
lima_bo.c gallium: rename 'state tracker' to 'frontend' 2020-05-13 13:46:53 -04:00
lima_bo.h lima: implement BO cache 2019-09-22 19:20:59 -07:00
lima_context.c lima: introduce fs and vs shader cache 2021-01-16 22:20:35 +00:00
lima_context.h lima: implement dual source blend 2021-11-29 19:31:59 +00:00
lima_disk_cache.c lima: implement shader disk cache 2021-03-25 06:31:41 +00:00
lima_disk_cache.h lima: implement shader disk cache 2021-03-25 06:31:41 +00:00
lima_draw.c lima: fix blending with min/max ops 2021-11-29 19:31:59 +00:00
lima_fence.c replace all F_DUPFD_CLOEXEC with os_dupfd_cloexec() 2020-06-18 02:09:56 +00:00
lima_fence.h
lima_format.c lima: enable z16 format 2021-05-19 18:15:46 +02:00
lima_format.h lima: add support for R and RG formats 2020-03-20 17:00:10 +00:00
lima_gpu.h lima: add RGBA5551 and RGBA4444 formats 2020-03-02 12:48:44 -08:00
lima_job.c lima: add more wrap modes 2021-11-16 22:58:12 +00:00
lima_job.h lima: limit number of draws per job 2021-04-12 22:34:12 +00:00
lima_parser.c lima: implement dual source blend 2021-11-29 19:31:59 +00:00
lima_parser.h lima: implement dual source blend 2021-11-29 19:31:59 +00:00
lima_program.c lima: fix crash with sparse samplers 2021-11-29 18:19:19 +00:00
lima_program.h lima: add support for R and RG formats 2020-03-20 17:00:10 +00:00
lima_query.c gallium: switch boolean -> bool at the interface definitions 2019-07-22 22:13:51 -04:00
lima_resource.c gallium/util: fix util_can_blit_via_copy_region with unbound render condition 2021-11-04 15:06:09 +00:00
lima_resource.h lima: switch resource to linear layout if there's to many full updates 2021-05-02 14:55:13 +00:00
lima_screen.c lima: implement dual source blend 2021-11-29 19:31:59 +00:00
lima_screen.h lima: implement shader disk cache 2021-03-25 06:31:41 +00:00
lima_state.c lima: Fix drawing wide lines 2021-11-11 11:25:58 +00:00
lima_texture.c lima: fix crash with sparse samplers 2021-11-29 18:19:19 +00:00
lima_texture.h lima: add more wrap modes 2021-11-16 22:58:12 +00:00
lima_util.c lima/parser: add shader disassembly to dump 2021-10-04 08:37:50 +02:00
lima_util.h lima/parser: add shader disassembly to dump 2021-10-04 08:37:50 +02:00
meson.build lima: add native txp support 2021-11-16 19:13:42 +00:00