mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 06:48:06 +02:00
i915: Enable intel_render path for points
The sub-pixel adjustment for points was killed off in
commit 60d762aa62
Author: Xiang, Haihao <haihao.xiang@intel.com>
Date: Wed Jan 2 11:38:51 2008 +0800
i915: Needn't adjust pixel centers. fix #12944
so if we don't need it in intel_tris.c we don't need it in
intel_render.c either, which means we can allow intel_render.c to render
points.
No apparent regressions on PNV in ES1 or ES2 conformance.
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
This commit is contained in:
parent
0febd0ecfd
commit
00ee403883
1 changed files with 3 additions and 5 deletions
|
|
@ -54,9 +54,7 @@
|
|||
* dma buffers. Use strip/fan hardware primitives where possible.
|
||||
* Try to simulate missing primitives with indexed vertices.
|
||||
*/
|
||||
#define HAVE_POINTS 0 /* Has it, but can't use because subpixel has to
|
||||
* be adjusted for points on the INTEL/I845G
|
||||
*/
|
||||
#define HAVE_POINTS 1
|
||||
#define HAVE_LINES 1
|
||||
#define HAVE_LINE_STRIPS 1
|
||||
#define HAVE_TRIANGLES 1
|
||||
|
|
@ -67,7 +65,7 @@
|
|||
#define HAVE_ELTS 0
|
||||
|
||||
static const uint32_t hw_prim[GL_POLYGON + 1] = {
|
||||
[GL_POINTS] = 0,
|
||||
[GL_POINTS] = PRIM3D_POINTLIST,
|
||||
[GL_LINES ] = PRIM3D_LINELIST,
|
||||
[GL_LINE_LOOP] = PRIM3D_LINESTRIP,
|
||||
[GL_LINE_STRIP] = PRIM3D_LINESTRIP,
|
||||
|
|
@ -93,7 +91,7 @@ static const GLenum reduced_prim[GL_POLYGON + 1] = {
|
|||
};
|
||||
|
||||
static const int scale_prim[GL_POLYGON + 1] = {
|
||||
[GL_POINTS] = 0, /* fallback case */
|
||||
[GL_POINTS] = 1,
|
||||
[GL_LINES] = 1,
|
||||
[GL_LINE_LOOP] = 2,
|
||||
[GL_LINE_STRIP] = 2,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue