panfrost: Remove blend shader hack
authorAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Sat, 30 Nov 2019 18:24:46 +0000 (13:24 -0500)
committerTomeu Vizoso <tomeu.vizoso@collabora.co.uk>
Tue, 3 Dec 2019 04:25:04 +0000 (04:25 +0000)
This is no longer used.

Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
src/gallium/drivers/panfrost/pan_blend_shaders.c
src/panfrost/include/panfrost-job.h

index 33a1f61c941539ce25bba2f45ad2ed8851d1027f..5d7eb9573ebe3ee660e59ce191d1632af9b1c836 100644 (file)
@@ -175,9 +175,6 @@ panfrost_compile_blend_shader(
         midgard_program program;
         midgard_compile_shader_nir(shader, &program, true, screen->gpu_id);
 
-        /* At least two work registers are needed due to an encoding quirk */
-        res.work_count = MAX2(program.work_register_count, 2);
-
         /* Allow us to patch later */
         res.patch_index = program.blend_patch_offset;
         res.first_tag = program.first_tag;
index ff0d9aa90368a124975862aa853f8ddfcc98154b..796be2372ac270cdf8b6392bb267aec61a65fd88 100644 (file)
@@ -436,8 +436,7 @@ union midgard_blend {
 struct midgard_blend_rt {
         /* Flags base value of 0x200 to enable the render target.
          * OR with 0x1 for blending (anything other than REPLACE).
-         * OR with 0x2 for programmable blending with 0-2 registers
-         * OR with 0x3 for programmable blending with 2+ registers
+         * OR with 0x2 for programmable blending
          * OR with MALI_BLEND_SRGB for implicit sRGB
          */