Re: [Mesa-dev] swrast gallium provider doesn't work on Solaris SPARC (Mesa 20 with LLVM 10)

2020-05-15 Thread Petr Sumbera

Seems to be related to:

llvmpipe: switch to NIR by default

https://github.com/mesa3d/mesa/commit/e6b2af56cb037e3174d049478e0ad7c7715780e4#diff-ca9de5cfd0347994dacc6eca9816d334

Following helps me as workaround:

--- a/src/gallium/drivers/llvmpipe/lp_screen.c
+++ b/src/gallium/drivers/llvmpipe/lp_screen.c
@@ -434,8 +434,10 @@ llvmpipe_get_shader_param(struct pipe_screen *screen,
  struct llvmpipe_screen *lscreen = llvmpipe_screen(screen);
  if (lscreen->use_tgsi)
 return PIPE_SHADER_IR_TGSI;
+#if !defined(__sparc__)
  else
 return PIPE_SHADER_IR_NIR;
+#endif
   }

   switch (param) {

---

Any idea?

Petr

On 13.05.2020 18:27, Petr Sumbera wrote:

Hi,

I have difficulties with Mesa update from version Mesa 18 (LLVM 6) where 
it used to work.


Now with Mesa 20 and LLVM 10 glxgears doesn't show wheels but just some 
random rectangles. Please see attached picture.


Any idea what could be possibly wrong?

Thanks you!

Petr

___
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/mesa-dev


Re: [Mesa-dev] swrast gallium provider doesn't work on Solaris SPARC (Mesa 20 with LLVM 10)

2020-05-15 Thread Roland Scheidegger
You can also set LP_DEBUG=tgsi_ir instead (but it will only work in
debug builds).

No idea though what could go wrong when using NIR, seems fairly strange
since there's nothing architecture specific in there (and the generated
IR should be fairly similar too especially for simple stuff).

Roland

Am 15.05.20 um 09:42 schrieb Petr Sumbera:
> Seems to be related to:
> 
> llvmpipe: switch to NIR by default
> 
> https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fmesa3d%2Fmesa%2Fcommit%2Fe6b2af56cb037e3174d049478e0ad7c7715780e4%23diff-ca9de5cfd0347994dacc6eca9816d334&data=02%7C01%7Csroland%40vmware.com%7C3b3e5b4b132a4a0e25ad08d7f8cdf251%7Cb39138ca3cee4b4aa4d6cd83d9dd62f0%7C0%7C1%7C637251435738333481&sdata=c3%2BMWC1pxQL5whzbM4IM65d%2B3LQne5RHIWQVF0NyzPA%3D&reserved=0
> 
> 
> Following helps me as workaround:
> 
> --- a/src/gallium/drivers/llvmpipe/lp_screen.c
> +++ b/src/gallium/drivers/llvmpipe/lp_screen.c
> @@ -434,8 +434,10 @@ llvmpipe_get_shader_param(struct pipe_screen *screen,
>   struct llvmpipe_screen *lscreen = llvmpipe_screen(screen);
>   if (lscreen->use_tgsi)
>  return PIPE_SHADER_IR_TGSI;
> +#if !defined(__sparc__)
>   else
>  return PIPE_SHADER_IR_NIR;
> +#endif
>    }
> 
>    switch (param) {
> 
> ---
> 
> Any idea?
> 
> Petr
> 
> On 13.05.2020 18:27, Petr Sumbera wrote:
>> Hi,
>>
>> I have difficulties with Mesa update from version Mesa 18 (LLVM 6)
>> where it used to work.
>>
>> Now with Mesa 20 and LLVM 10 glxgears doesn't show wheels but just
>> some random rectangles. Please see attached picture.
>>
>> Any idea what could be possibly wrong?
>>
>> Thanks you!
>>
>> Petr
> ___
> mesa-dev mailing list
> mesa-dev@lists.freedesktop.org
> https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.freedesktop.org%2Fmailman%2Flistinfo%2Fmesa-dev&data=02%7C01%7Csroland%40vmware.com%7C3b3e5b4b132a4a0e25ad08d7f8cdf251%7Cb39138ca3cee4b4aa4d6cd83d9dd62f0%7C0%7C1%7C637251435738333481&sdata=gaemm3a26OlOdcUXOerfZWp0iGqw8ysrSPrXKYgRHMU%3D&reserved=0
> 

___
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/mesa-dev