Re: [Mesa-dev] [PATCH 6/8] i965: Drop some duplicated code in DRI winsys BO updates.

2014-02-18 Thread Eric Anholt
Kenneth Graunke writes: > On 02/14/2014 03:00 PM, Eric Anholt wrote: > [snip] >> @@ -666,78 +667,6 @@ intel_miptree_create_for_bo(struct brw_context *brw, >> return mt; >> } >> >> - >> -/** >> - * For a singlesample DRI2 buffer, this simply wraps the given region with >> a miptree. >> - *

Re: [Mesa-dev] [PATCH 6/8] i965: Drop some duplicated code in DRI winsys BO updates.

2014-02-14 Thread Kenneth Graunke
On 02/14/2014 03:00 PM, Eric Anholt wrote: [snip] > @@ -666,78 +667,6 @@ intel_miptree_create_for_bo(struct brw_context *brw, > return mt; > } > > - > -/** > - * For a singlesample DRI2 buffer, this simply wraps the given region with a > miptree. > - * > - * For a multisample DRI2 buffer, t

[Mesa-dev] [PATCH 6/8] i965: Drop some duplicated code in DRI winsys BO updates.

2014-02-14 Thread Eric Anholt
The only DRI2 vs DRI3 delta was just how to decide about frontbuffer-ness for doing the upsample. --- src/mesa/drivers/dri/i965/brw_context.c | 26 --- src/mesa/drivers/dri/i965/intel_mipmap_tree.c | 102 -- src/mesa/drivers/dri/i965/intel_mipmap_tree.h | 19 ++-