[Mesa-dev] [PATCH 00/10] gallium: normalize CONST file accesses to 2D - 2. try without image for the list

Dieter Nützel Dieter at nuetzel-hh.de
Sat Aug 26 03:38:01 UTC 2017


Brave man,

with the little 'squash! st/glsl_to_tgsi: inline src_register into 
translate_src' on top of your series, both issues are _solved_.

So you have my

Tested-by: Dieter Nützel <Dieter at nuetzel-hh.de>

for the series.

BTW
Running this together with:
Prehash-all-the-things.mbox (Thomas Helland)
mesa-st-glsl_to_tgsi-refined-register-merge-algorithm.mbox (v9, by Gert 
Wollny, disabled/enabled)

Cheers back to you with German beer (of course),
Dieter

Am 25.08.2017 09:13, schrieb Nicolai Hähnle:
> Hi Dieter,
> 
> sorry for the churn -- do these issues also occur with the latest
> addition to
> https://cgit.freedesktop.org/~nh/mesa/log/?h=tgsi-const-2d?
> 
> Cheers,
> Nicolai
> 
> On 25.08.2017 08:19, Dieter Nützel wrote:
>> Am 25.08.2017 07:38, schrieb Dieter Nützel:
>>> Am 23.08.2017 18:41, schrieb Nicolai Hähnle:
>>>> Hi all,
>>>> 
>>>> Following the discussion on Timothy's std430 packing series, here's
>>>> a quick proposal to just always use 2D accesses to the CONST file
>>>> in TGSI.
>>>> 
>>>> The first patch should be sufficient for all drivers to accept
>>>> those 2D accesses. It seems that most older drivers simply ignore
>>>> the dimension, and newer ones should handle it directly.
>>>> 
>>>> Subsequent patches modify the producers of TGSI to always use 2D
>>>> constant references. This is mostly done by changing ureg.
>>>> 
>>>> Finally, the last patch adds an assertion to radeonsi to make
>>>> sure all constant references are really 2D. It has survived my
>>>> very superficial initial testing.
>> 
>> Addendum:
>> 
>> glmark2 (2017.07) threw assertion.
>> System hang followed so sadly only mobile screenshot appended.
>> 
>> Goodnight! ;-)
>> 
>> Dieter
>> 
>>>> What needs to be tested is:
>>>> - some more drivers
>>>> - Nine
>>> 
>>> Sorry Nicolai,
>>> 
>>> but Nine corruption with Wine (LS2017 / FarmingSimulator2017) on 
>>> RX580, here.
>>> 
>>> After KDE relogin partially window/screen corruption (window boarder
>>> pixel flickering).
>>> 
>>> Dieter
>>> 
>>> 
>>>> - TGSI-to-NIR
>>>> 
>>>> You can find the series here:
>>>> https://cgit.freedesktop.org/~nh/mesa/log/?h=tgsi-const-2d
>>>> 
>>>> Please comment/review!
>>>> Thanks,
>>>> Nicolai
>>>> --  src/gallium/auxiliary/hud/hud_context.c      |   8 +-
>>>>  src/gallium/auxiliary/nir/tgsi_to_nir.c      |   2 +-
>>>>  src/gallium/auxiliary/postprocess/pp_mlaa.h  |  20 +--
>>>>  src/gallium/auxiliary/tgsi/tgsi_ureg.c       |  22 +--
>>>>  src/gallium/auxiliary/util/u_tests.c         |   4 +-
>>>>  src/gallium/docs/source/screen.rst           |  11 +-
>>>>  src/gallium/drivers/radeon/r600_query.c      |  36 ++--
>>>>  src/gallium/drivers/radeonsi/si_shader.c     |   1 +
>>>>  src/gallium/state_trackers/nine/nine_ff.c    |   2 +-
>>>>  .../state_trackers/nine/nine_shader.c        |  10 +-
>>>>  .../tests/graw/fragment-shader/frag-cb-1d.sh |   8 +-
>>>>  .../tests/graw/vertex-shader/vert-cb-1d.sh   |   8 +-
>>>>  src/mesa/state_tracker/st_glsl_to_tgsi.cpp   | 153 
>>>> +++++++++--------
>>>>  13 files changed, 136 insertions(+), 149 deletions(-)
>>>> 
>>>> _______________________________________________
>>>> mesa-dev mailing list
>>>> mesa-dev at lists.freedesktop.org
>>>> https://lists.freedesktop.org/mailman/listinfo/mesa-dev
>>> _______________________________________________
>>> mesa-dev mailing list
>>> mesa-dev at lists.freedesktop.org
>>> https://lists.freedesktop.org/mailman/listinfo/mesa-dev


More information about the mesa-dev mailing list