intel/vec4: Use MESA_PRIM_* instead of GL_*

Reviewed-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24821>
This commit is contained in:
Faith Ekstrand
2023-08-21 18:11:21 -05:00
committed by Marge Bot
parent b97003e49a
commit e3ff5a3b0e
3 changed files with 3 additions and 3 deletions

View File

@@ -2419,7 +2419,7 @@ fs_visitor::emit_gs_vertex(const nir_src &vertex_count_nir_src,
/* In stream mode we have to set control data bits for all vertices
* unless we have disabled control data bits completely (which we do
* do for GL_POINTS outputs that don't use streams).
* do for MESA_PRIM_POINTS outputs that don't use streams).
*/
if (gs_compile->control_data_header_size_bits > 0 &&
gs_prog_data->control_data_format ==

View File

@@ -496,7 +496,7 @@ vec4_gs_visitor::gs_emit_vertex(int stream_id)
/* In stream mode we have to set control data bits for all vertices
* unless we have disabled control data bits completely (which we do
* do for GL_POINTS outputs that don't use streams).
* do for MESA_PRIM_POINTS outputs that don't use streams).
*/
if (c->control_data_header_size_bits > 0 &&
gs_prog_data->control_data_format ==

View File

@@ -322,7 +322,7 @@ gfx6_gs_visitor::emit_thread_end()
* first_vertex is not zero. This is only relevant for outputs other than
* points because in the point case we set PrimEnd on all vertices.
*/
if (nir->info.gs.output_primitive != GL_POINTS) {
if (nir->info.gs.output_primitive != MESA_PRIM_POINTS) {
emit(CMP(dst_null_ud(), this->first_vertex, brw_imm_ud(0u), BRW_CONDITIONAL_Z));
emit(IF(BRW_PREDICATE_NORMAL));
gs_end_primitive();