Mesa (main): tgsi: Don't bother setting the TGSI_PROPERTY_SEPARABLE_PROGRAM

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Thu Jul 7 10:20:31 UTC 2022


Module: Mesa
Branch: main
Commit: 198bcf7726705b08a4810c9823b1456954122a9a
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=198bcf7726705b08a4810c9823b1456954122a9a

Author: Gert Wollny <gert.wollny at collabora.com>
Date:   Sat Jul  2 10:02:16 2022 +0200

tgsi: Don't bother setting the TGSI_PROPERTY_SEPARABLE_PROGRAM

Most drivers don't care about the property, and virgl should only handle
it if the host supports it.

This is a partial revert of b634030, i.e. we keep the definition of the
property, but we don't set it only based on the shader info.

Fixes: b63403054237c3e408f2662beb52ec65db0aee30
  tgsi: Add SEPARABLE_PROGRAM property

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17344>

---

 src/gallium/auxiliary/tgsi/tgsi_ureg.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/src/gallium/auxiliary/tgsi/tgsi_ureg.c b/src/gallium/auxiliary/tgsi/tgsi_ureg.c
index d3ba3f0dc26..398d59b957b 100644
--- a/src/gallium/auxiliary/tgsi/tgsi_ureg.c
+++ b/src/gallium/auxiliary/tgsi/tgsi_ureg.c
@@ -2408,9 +2408,6 @@ ureg_setup_shader_info(struct ureg_program *ureg,
    if (info->layer_viewport_relative)
       ureg_property(ureg, TGSI_PROPERTY_LAYER_VIEWPORT_RELATIVE, 1);
 
-   if (info->separate_shader)
-      ureg_property(ureg, TGSI_PROPERTY_SEPARABLE_PROGRAM, 1);
-
    switch (info->stage) {
    case MESA_SHADER_VERTEX:
       ureg_setup_clipdist_info(ureg, info);



More information about the mesa-commit mailing list