[Mesa-dev] [PATCH 14/16] android: add inital NIR build

Emil Velikov emil.l.velikov at gmail.com
Sun Mar 29 03:15:08 PDT 2015


On 29 March 2015 at 04:17, Kenneth Graunke <kenneth at whitecape.org> wrote:
> On Sunday, March 29, 2015 12:14:50 AM Emil Velikov wrote:
>> On 28 March 2015 at 20:54, Emil Velikov <emil.l.velikov at gmail.com> wrote:
>> > From: Mauro Rossi <issor.oruam at gmail.com>
>> >
>> > Required by the i965 driver.
>> >
>> > Cc: "10.5" <mesa-stable at lists.freedesktop.org>
>> > [Emil Velikov: Split from a larger commit]
>> > Signed-off-by: Emil Velikov <emil.l.velikov at gmail.com>
>> > ---
>> >  src/glsl/Android.gen.mk         | 62
> +++++++++++++++++++++++++++++++++++++++--
>> >  src/glsl/Android.mk             |  3 +-
>> >  src/mesa/drivers/dri/Android.mk |  1 +
>> >  3 files changed, 63 insertions(+), 3 deletions(-)
>> >
>> > diff --git a/src/glsl/Android.gen.mk b/src/glsl/Android.gen.mk
>> > index 7ec56d4..82f2bf1 100644
>> > --- a/src/glsl/Android.gen.mk
>> > +++ b/src/glsl/Android.gen.mk
>> > @@ -33,11 +33,21 @@ sources := \
>> >         glsl_lexer.cpp \
>> >         glsl_parser.cpp \
>> >         glcpp/glcpp-lex.c \
>> > -       glcpp/glcpp-parse.c
>> > +       glcpp/glcpp-parse.c \
>> > +       nir/nir_builder_opcodes.h \
>>
>> Seems like the nir_builder_opcodes.h addition came after the 10.5
>> branchpoint. So in order to get this for 10.5 we'll need to split them
>> out into a separate patch.
>>
>> -Emil
>
> Building NIR on 10.5 isn't really worth doing - the version we've got in
> master now is pretty solid, but the version in 10.5 offers only bugs,
> and no actual performance benefits.
>
> I'd just skip it, honestly - I've actually thought about just patching
> it out of 10.5 so people don't report bugs against outdated code.
>
> We're aiming to have NIR up and running in 10.6.
>
Hi Ken

Bth I would be fine with either solution - patching NIR out of the
build for 10.5 or adding build support for Android. Both will allow us
to have a i965 dri module without unresolved dri symbols. although I
would assume that the latter option will be sorter/easier. About the
functionality(bugs) I would say that it people explicitly set the env
variable then they are asking for what they deserve ;-)

Cheers,
Emil


More information about the mesa-dev mailing list