Re: [Mesa-dev] [PATCH 2/2] i965: fix the wrong min/max_index for nr_prims 1

2011-12-30 Thread Yuanhan Liu
On Thu, Dec 29, 2011 at 09:10:03AM +0100, Michel Dänzer wrote: On Don, 2011-12-29 at 10:03 +0800, Yuanhan Liu wrote: On Wed, Dec 28, 2011 at 12:07:08PM -0800, Eric Anholt wrote: On Wed, 28 Dec 2011 13:54:43 +0800, Yuanhan Liu yuanhan@linux.intel.com wrote: The current code would

Re: [Mesa-dev] [PATCH 2/2] i965: fix the wrong min/max_index for nr_prims 1

2011-12-29 Thread Michel Dänzer
On Don, 2011-12-29 at 10:03 +0800, Yuanhan Liu wrote: On Wed, Dec 28, 2011 at 12:07:08PM -0800, Eric Anholt wrote: On Wed, 28 Dec 2011 13:54:43 +0800, Yuanhan Liu yuanhan@linux.intel.com wrote: The current code would just calculate min/max_index for the first prim unconditionally,

Re: [Mesa-dev] [PATCH 2/2] i965: fix the wrong min/max_index for nr_prims 1

2011-12-28 Thread Yuanhan Liu
On Wed, Dec 28, 2011 at 12:07:08PM -0800, Eric Anholt wrote: On Wed, 28 Dec 2011 13:54:43 +0800, Yuanhan Liu yuanhan@linux.intel.com wrote: The current code would just calculate min/max_index for the first prim unconditionally, which is wrong if nr_prims 1. This would some cases

[Mesa-dev] [PATCH 2/2] i965: fix the wrong min/max_index for nr_prims 1

2011-12-27 Thread Yuanhan Liu
The current code would just calculate min/max_index for the first prim unconditionally, which is wrong if nr_prims 1. This would some cases like that the index is stored in element array buffer object and drawing by glMultiDrawEelements. Thus it fixes some intel oglc primbuff test cases.