i965: Drop some duplicated code in DRI winsys BO updates.
authorEric Anholt <eric@anholt.net>
Thu, 13 Feb 2014 22:33:57 +0000 (14:33 -0800)
committerEric Anholt <eric@anholt.net>
Tue, 18 Feb 2014 17:56:36 +0000 (09:56 -0800)
commit019560c127778dc3b08bdc7c3acdc68dbbb80ea0
tree07bb3124a32731af3d6b1efae3a30f21b2207314
parent0440e677b98c6e09f0958fcf782be67dccb94b08
i965: Drop some duplicated code in DRI winsys BO updates.

The only DRI2 vs DRI3 delta was just how to decide about frontbuffer-ness
for doing the upsample.

v2: Fix missing singlesample_mt->region->name update in the merged code,
    which would have broken the DRI2 don't-recreate-the-miptree
    optimization.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_context.c
src/mesa/drivers/dri/i965/intel_mipmap_tree.c
src/mesa/drivers/dri/i965/intel_mipmap_tree.h