[Mesa-dev] [PATCH 2/2] i965/gs: New gs primitive types are supported by HW primitive restart.

Kenneth Graunke kenneth at whitecape.org
Sat Sep 14 14:18:48 PDT 2013


On 09/14/2013 01:59 PM, Paul Berry wrote:
> When we previously implemented primitive restart, we didn't add cases
> to brw_primitive_restart.c's can_cut_index_handle_prims() for the
> primitive types that are introduced with geometry shaders.  It turns
> out that all of the new primitive types are supported by hardware
> primitive restart.
> ---
>  src/mesa/drivers/dri/i965/brw_primitive_restart.c | 4 ++++
>  1 file changed, 4 insertions(+)
> 
> diff --git a/src/mesa/drivers/dri/i965/brw_primitive_restart.c b/src/mesa/drivers/dri/i965/brw_primitive_restart.c
> index bd48762..2ee6055 100644
> --- a/src/mesa/drivers/dri/i965/brw_primitive_restart.c
> +++ b/src/mesa/drivers/dri/i965/brw_primitive_restart.c
> @@ -99,6 +99,10 @@ can_cut_index_handle_prims(struct gl_context *ctx,
>        case GL_LINE_STRIP:
>        case GL_TRIANGLES:
>        case GL_TRIANGLE_STRIP:
> +      case GL_LINES_ADJACENCY:
> +      case GL_LINE_STRIP_ADJACENCY:
> +      case GL_TRIANGLES_ADJACENCY:
> +      case GL_TRIANGLE_STRIP_ADJACENCY:
>           /* Cut index supports these primitive types */
>           break;
>        default:
> 

Both of these are:
Reviewed-by: Kenneth Graunke <kenneth at whitecape.org>

(See the SNB PRM, Volume 2 Part 1, page 80.)


More information about the mesa-dev mailing list