Module: Mesa Branch: master Commit: 6ba9088d9c692bfdafdf354ee96f662166582a79 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=6ba9088d9c692bfdafdf354ee96f662166582a79
Author: Antia Puentes <apuen...@igalia.com> Date: Sat Apr 28 14:09:19 2018 +0200 intel/compiler: Add uses_is_indexed_draw flag Reviewed-by: Jason Ekstrand <ja...@jlekstrand.net> --- src/intel/compiler/brw_compiler.h | 1 + src/intel/compiler/brw_vec4.cpp | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/src/intel/compiler/brw_compiler.h b/src/intel/compiler/brw_compiler.h index 24196248b8..e3bf535a51 100644 --- a/src/intel/compiler/brw_compiler.h +++ b/src/intel/compiler/brw_compiler.h @@ -978,6 +978,7 @@ struct brw_vs_prog_data { bool uses_vertexid; bool uses_instanceid; bool uses_basevertex; + bool uses_is_indexed_draw; bool uses_firstvertex; bool uses_baseinstance; bool uses_drawid; diff --git a/src/intel/compiler/brw_vec4.cpp b/src/intel/compiler/brw_vec4.cpp index 1e384f5bf4..e583c54920 100644 --- a/src/intel/compiler/brw_vec4.cpp +++ b/src/intel/compiler/brw_vec4.cpp @@ -2838,6 +2838,10 @@ brw_compile_vs(const struct brw_compiler *compiler, void *log_data, prog_data->uses_basevertex = true; if (shader->info.system_values_read & + BITFIELD64_BIT(SYSTEM_VALUE_IS_INDEXED_DRAW)) + prog_data->uses_is_indexed_draw = true; + + if (shader->info.system_values_read & BITFIELD64_BIT(SYSTEM_VALUE_FIRST_VERTEX)) prog_data->uses_firstvertex = true; _______________________________________________ mesa-commit mailing list mesa-commit@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-commit