[Mesa-dev] [PATCH 2/2] intel: Skip texture validation logic when nothing has changed.

Eric Anholt eric at anholt.net
Wed Dec 26 12:07:40 PST 2012


Kenneth Graunke <kenneth at whitecape.org> writes:

> On 12/23/2012 11:43 PM, Eric Anholt wrote:
>> Improves GLBenchmark 2.1 offscreen performance by 3.2% +/- 1.5% (n=52).
>> ---
>>   src/mesa/drivers/dri/intel/intel_mipmap_tree.c  |    3 +++
>>   src/mesa/drivers/dri/intel/intel_tex.c          |    4 ++++
>>   src/mesa/drivers/dri/intel/intel_tex_image.c    |    1 +
>>   src/mesa/drivers/dri/intel/intel_tex_obj.h      |    6 ++++++
>>   src/mesa/drivers/dri/intel/intel_tex_validate.c |   18 ++++++++++++++++--
>>   5 files changed, 30 insertions(+), 2 deletions(-)
>
> This looks good to me, but I'm not sure I'm qualified to give it a 
> proper review, which I think would be to
>
> 1. look for any cases where the validation/pull-in-foreign-image code is 
> necessary but not covered by needs_validate = true
> 2. make sure needs_validate = true cases are indeed necessary

What I was grepping for when making the patch was "image->mt" (-i), and
specifically looking at anywhere that set it to a non-null value (since
if storage for an image is unreferenced, we don't have anything to
validate in until the texture object becomes complete again).
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20121226/3983a341/attachment.pgp>


More information about the mesa-dev mailing list