[Mesa-dev] [PATCH 01/15] intel: Remove dead code in intelAllocateBuffer
Eric Anholt
eric at anholt.net
Mon Jul 23 09:15:32 PDT 2012
Chris Wilson <chris at chris-wilson.co.uk> writes:
> On Sat, 21 Jul 2012 17:36:40 -0700, Chad Versace <chad.versace at linux.intel.com> wrote:
>> After commit "intel: Convert to using private depth/stencil buffers", we
>> request from DRI2GetBuffersWithFormat only the front left and back left
>> buffers. We no longer request depth and stencil buffers.
>>
>> Assert that in intelAllocateBuffer and remove the related dead code.
>
>> diff --git a/src/mesa/drivers/dri/intel/intel_screen.c b/src/mesa/drivers/dri/intel/intel_screen.c
>> index 81953ce..2d46d67 100644
>> --- a/src/mesa/drivers/dri/intel/intel_screen.c
>> +++ b/src/mesa/drivers/dri/intel/intel_screen.c
>> @@ -972,54 +972,6 @@ struct intel_buffer {
>> struct intel_region *region;
>
>> - ok = intel_get_dri_buffer_tiling(intelScreen, attachment, &tiling);
>
>> + /* The front and back buffers are color buffers, which are X tiled. */
>> intelBuffer->region = intel_region_alloc(intelScreen,
>> - tiling,
>> - region_cpp,
>> - region_width,
>> - region_height,
>> + I915_TILING_X,
>> + format / 8,
>> + width,
>> + height,
>> true);
>
> I see no reason to bake in the assumption that the buffers are X-tiled.
> Presumably Y-tiling will still be advantageous in many circumstances,
> basically any surface which is not a candidate for pageflipping?
If there was some reason, it probably won't be based on just the
attachment type, so this seems like a good change.
-------------- 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/20120723/efa45962/attachment.pgp>
More information about the mesa-dev
mailing list