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:

committed by
Marge Bot

parent
b97003e49a
commit
e3ff5a3b0e
@@ -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 ==
|
||||
|
@@ -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 ==
|
||||
|
@@ -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();
|
||||
|
Reference in New Issue
Block a user