<div dir="ltr">Thank you for your review. Emil. It sounds like renaming swrast to softpipe is not a good idea, Inspired by your second question, perhaps a new MESA_ENABLE_LLVMPIPE would allow us to maintain backward compatibility and keep the ability to switch between softpipe/llvmpipe. How does this sound? <div><div><br></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">2017-01-11 0:07 GMT+08:00 Emil Velikov <span dir="ltr"><<a href="mailto:emil.l.velikov@gmail.com" target="_blank">emil.l.velikov@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On 6 January 2017 at 17:35, Wu Zhen <<a href="mailto:wuzhen@jidemail.com">wuzhen@jidemail.com</a>> wrote:<br>
> From: WuZhen <<a href="mailto:wuzhen@jidemail.com">wuzhen@jidemail.com</a>><br>
><br>
> rename old swrast to softpipe, add a new driver llvmpipe<br>
><br>
</span>Generic comment:<br>
Please keep mechanical changes (rename) separate from new<br>
functionality (llvmpipe support).<br>
<br>
Two [somewhat] open questions:<br>
- If we rename swrast I would suggest sending patches for gralloc (drm<br>
and gbm flavours) to respective places.<br>
Please check with Rob H and the CrOS/Intel guys - git log will show<br>
you the names/emails.<br>
<br>
- If one moves MESA_ENABLE_LLVM to the device manifest there will be<br>
no need for the extra llvmpipe.<br>
This will make the patch much smaller and handling simpler, but one'll<br>
need to error out if building radeonsi w/o the toggle.<br>
<span class=""><br>
<br>
> --- a/src/gallium/Android.mk<br>
> +++ b/src/gallium/Android.mk<br>
> @@ -34,7 +34,9 @@ SUBDIRS += auxiliary/pipe-loader<br>
> #<br>
><br>
> # swrast<br>
> -ifneq ($(filter swrast,$(MESA_GPU_DRIVERS)),)<br>
> +ifneq ($(filter llvmpipe,$(MESA_GPU_DRIVERS)),<wbr>)<br>
> +SUBDIRS += winsys/sw/dri drivers/llvmpipe drivers/softpipe<br>
> +else ifneq ($(filter softpipe,$(MESA_GPU_DRIVERS)),<wbr>)<br>
> SUBDIRS += winsys/sw/dri drivers/softpipe<br>
</span>Won't this lead to having the same SUBDIRS multiple times if one has<br>
both softpipe and llvmpipe in MESA_GPU_DRIVERS ?<br>
<span class=""><br>
<br>
<br>
> --- a/src/gallium/targets/dri/<wbr>Android.mk<br>
> +++ b/src/gallium/targets/dri/<wbr>Android.mk<br>
> @@ -81,7 +81,11 @@ endif<br>
> gallium_DRIVERS += libmesa_winsys_radeon libmesa_pipe_radeon libmesa_amdgpu_addrlib<br>
> LOCAL_SHARED_LIBRARIES += libdrm_radeon<br>
> endif<br>
> -ifneq ($(filter swrast,$(MESA_GPU_DRIVERS)),)<br>
> +ifneq ($(filter llvmpipe,$(MESA_GPU_DRIVERS)),<wbr>)<br>
> +gallium_DRIVERS += libmesa_pipe_llvmpipe libmesa_pipe_softpipe libmesa_winsys_sw_dri<br>
> +LOCAL_CFLAGS += -DGALLIUM_LLVMPIPE -DGALLIUM_SOFTPIPE<br>
> +LOCAL_SHARED_LIBRARIES += libLLVM<br>
> +else ifeq ($(filter softpipe,$(MESA_GPU_DRIVERS)),<wbr>)<br>
> gallium_DRIVERS += libmesa_pipe_softpipe libmesa_winsys_sw_dri<br>
> LOCAL_CFLAGS += -DGALLIUM_SOFTPIPE<br>
</span>Similar to the SUBDIRS this will cause issues when both llvm and soft<br>
-pipe are set, correct ?<br>
<br>
Thanks<br>
<span class="HOEnZb"><font color="#888888">Emil<br>
</font></span></blockquote></div><br></div>