[Mesa-dev] [PATCH] glsl: move shader_enums into nir

Rob Clark robdclark at gmail.com
Fri Oct 9 12:07:53 PDT 2015


On Fri, Oct 9, 2015 at 4:55 AM, Emil Velikov <emil.l.velikov at gmail.com> wrote:
> On 8 October 2015 at 23:25, Rob Clark <robdclark at gmail.com> wrote:
>> From: Rob Clark <robclark at freedesktop.org>
>>
>> First step towards inverting the dependency between glsl and nir (so nir
>> can be used without glsl).  Also solves this issue with 'make distclean'
>>
>>   Making distclean in mesa
>>   make[2]: Entering directory '/mnt/sdb1/Src64/Mesa-git/mesa/src/mesa'
>>   Makefile:2486: ../glsl/.deps/shader_enums.Plo: No such file or directory
>>   make[2]: *** No rule to make target '../glsl/.deps/shader_enums.Plo'. Stop.
>>   make[2]: Leaving directory '/mnt/sdb1/Src64/Mesa-git/mesa/src/mesa'
>>   Makefile:684: recipe for target 'distclean-recursive' failed
>>   make[1]: *** [distclean-recursive] Error 1
>>   make[1]: Leaving directory '/mnt/sdb1/Src64/Mesa-git/mesa/src'
>>   Makefile:615: recipe for target 'distclean-recursive' failed
>>   make: *** [distclean-recursive] Error 1
>>
>> Reported-by: Andy Furniss <adf.lists at gmail.com>
>> Signed-off-by: Rob Clark <robclark at freedesktop.org>
> Reviewed-by: Emil Velikov <emil.velikov at collabora.com>
>
> You might want to pick (as a follow up?) some of these
>  - move VARYING_SLOT_MAX and FRAG_RESULT_MAX from mtypes.h to shader_enum.h
>  - add the missing SYSTEM_VALUE_NUM_WORK_GROUPS enum
>  - use STATIC_ASSERT

yeah, seams reasonable..  but follow up patches..

> I'm also wondering if we'd want to use a prefix for symbols (and
> files?) to easily draw the line between the different components.
> Through I'd suspect that it will turn into a bikeshed battle ;-)

yeah.. either way I'm kind of a fan of moving first and then renaming
as a separate patch..

BR,
-R

> Thanks
> Emil


More information about the mesa-dev mailing list