[Mesa-dev] [PATCH 1/8] meta: Put _mesa_meta_in_progress in the header file

Ian Romanick idr at freedesktop.org
Sun Dec 21 11:28:38 PST 2014


Jason asked on IRC what the overall results were for the series.  Here
is that data.  n=50 for all four.

        Gl32Batch7              Gl32Multithread
32-bit  4.11846% +/- 0.216796%  1.97044% +/- 0.161024%
64-bit  5.48027% +/- 0.368804%  2.46053% +/- 0.19554%

On 12/19/2014 02:22 PM, Ian Romanick wrote:
> I should have also mentioned that this series is on the
> byt-cpu-optimizations branch of my fd.o tree.
> 
> On 12/19/2014 02:20 PM, Ian Romanick wrote:
>> From: Ian Romanick <ian.d.romanick at intel.com>
>>
>> ...so that it can be inlined in the two places that call it.
>>
>> On Bay Trail-D using Fedora 20 compile flags (-m64 -O2 -mtune=generic
>> for 64-bit and -m32 -march=i686 -mtune=atom for 32-bit), affects
>> Gl32Batch7:
>>
>> 32-bit: No difference proven at 95.0% confidence (n=120)
>> 64-bit: Difference at 95.0% confidence 1.24042% +/- 0.382277% (n=40)
>>
>> Signed-off-by: Ian Romanick <ian.d.romanick at intel.com>
>> ---
>>  src/mesa/drivers/common/meta.c | 10 ----------
>>  src/mesa/drivers/common/meta.h |  7 +++++--
>>  2 files changed, 5 insertions(+), 12 deletions(-)
>>
>> diff --git a/src/mesa/drivers/common/meta.c b/src/mesa/drivers/common/meta.c
>> index 87532c1..3284ad1 100644
>> --- a/src/mesa/drivers/common/meta.c
>> +++ b/src/mesa/drivers/common/meta.c
>> @@ -1213,16 +1213,6 @@ _mesa_meta_end(struct gl_context *ctx)
>>  
>>  
>>  /**
>> - * Determine whether Mesa is currently in a meta state.
>> - */
>> -GLboolean
>> -_mesa_meta_in_progress(struct gl_context *ctx)
>> -{
>> -   return ctx->Meta->SaveStackDepth != 0;
>> -}
>> -
>> -
>> -/**
>>   * Convert Z from a normalized value in the range [0, 1] to an object-space
>>   * Z coordinate in [-1, +1] so that drawing at the new Z position with the
>>   * default/identity ortho projection results in the original Z value.
>> diff --git a/src/mesa/drivers/common/meta.h b/src/mesa/drivers/common/meta.h
>> index 6ecf3c0..c6aef01 100644
>> --- a/src/mesa/drivers/common/meta.h
>> +++ b/src/mesa/drivers/common/meta.h
>> @@ -446,8 +446,11 @@ _mesa_meta_begin(struct gl_context *ctx, GLbitfield state);
>>  extern void
>>  _mesa_meta_end(struct gl_context *ctx);
>>  
>> -extern GLboolean
>> -_mesa_meta_in_progress(struct gl_context *ctx);
>> +static inline bool
>> +_mesa_meta_in_progress(struct gl_context *ctx)
>> +{
>> +   return ctx->Meta->SaveStackDepth != 0;
>> +}
>>  
>>  extern void
>>  _mesa_meta_fb_tex_blit_begin(const struct gl_context *ctx,
>>
> 
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/mesa-dev
> 



More information about the mesa-dev mailing list