pan/bi: Add .shadow modifier to TEX_GATHER
authorAlyssa Rosenzweig <alyssa@collabora.com>
Fri, 18 Mar 2022 17:39:02 +0000 (13:39 -0400)
committerMarge Bot <emma+marge@anholt.net>
Wed, 30 Mar 2022 17:29:12 +0000 (17:29 +0000)
Although TEX_GATHER looks like TEX_FETCH, it does support shadow comparators
like TEX_SINGLE. Model this in the IR so we can use it.

Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15586>

src/panfrost/bifrost/ISA.xml

index 0ae1fba0d34f9bdbdc4dedcfb4c42bb3e00ea9cf..0d3b4fae3c6b8e844fcbc64ea4429c3e15330be2 100644 (file)
     <immediate name="sr_count" size="4" pseudo="true"/>
     <mod name="texel_offset" start="9" size="1" opt="texel_offset"/>
     <mod name="skip" start="9" size="1" opt="skip"/>
+    <mod name="shadow" start="9" size="1" opt="shadow"/>
     <mod name="array_enable" start="9" size="1" opt="array_enable"/>
     <mod name="integer_coordinates" start="9" size="1" opt="integer_coordinates"/>
     <mod name="fetch_component" start="9" size="2">