summaryrefslogtreecommitdiffstats
path: root/src/mesa/swrast
diff options
context:
space:
mode:
authorKenneth Graunke <[email protected]>2015-07-24 21:15:35 -0700
committerKenneth Graunke <[email protected]>2015-11-11 08:33:48 -0800
commita2987ff57f08325f6e1dedae578bd6251a22b2b4 (patch)
treec9c70325b21bd6e66d379714490481d2c9507d6b /src/mesa/swrast
parentcbb7d90e5784b1e44c1801f74c3088638940442d (diff)
i965: Map GL_PATCHES to 3DPRIM_PATCHLIST_n.
Inspired by a patch by Fabian Bieler. Fabian defined a _3DPRIM_PATCHLIST_0 macro (which isn't actually a valid topology type); I instead chose to make a macro that takes an argument. He also took the number of patch vertices from _mesa_prim (which was set to ctx->TessCtrlProgram.patch_vertices) - I chose to use it directly to avoid the need for the VBO patch. v2: Change macro to 0x20 + (n - 1) instead of 0x1F + n to better match the documentation (suggested by Ian). Signed-off-by: Kenneth Graunke <[email protected]> Reviewed-by: Ian Romanick <[email protected]>
Diffstat (limited to 'src/mesa/swrast')
0 files changed, 0 insertions, 0 deletions