gallium: add a new PIPE_SHADER_MESH_TYPES

This adds a new limit, changing PIPE_SHADER_TYPES seems frought
with danger and very tricky. Currently only lava/llvmpipe plan to
offer task/mesh in GL land, so let's limit the fallout for now.

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23291>
This commit is contained in:
Dave Airlie 2023-05-29 13:36:45 +10:00 committed by Marge Bot
parent 96b38883df
commit 564094b3ce
3 changed files with 9 additions and 3 deletions

View file

@ -63,7 +63,11 @@ typedef enum pipe_shader_type
PIPE_SHADER_TYPES = (PIPE_SHADER_COMPUTE + 1),
/* Vulkan-only stages. */
MESA_SHADER_TASK = 6,
PIPE_SHADER_TASK = MESA_SHADER_TASK,
MESA_SHADER_MESH = 7,
PIPE_SHADER_MESH = MESA_SHADER_MESH,
PIPE_SHADER_MESH_TYPES = (PIPE_SHADER_MESH + 1),
MESA_SHADER_RAYGEN = 8,
MESA_SHADER_ANY_HIT = 9,
MESA_SHADER_CLOSEST_HIT = 10,

View file

@ -32,14 +32,16 @@
#include "tgsi_strings.h"
const char *tgsi_processor_type_names[6] =
const char *tgsi_processor_type_names[8] =
{
"VERT",
"TESS_CTRL",
"TESS_EVAL",
"GEOM",
"FRAG",
"COMP"
"COMP",
"TASK",
"MESH"
};
static const char *tgsi_file_names[] =

View file

@ -38,7 +38,7 @@ extern "C" {
#endif
extern const char *tgsi_processor_type_names[PIPE_SHADER_TYPES];
extern const char *tgsi_processor_type_names[PIPE_SHADER_MESH_TYPES];
extern const char *tgsi_semantic_names[TGSI_SEMANTIC_COUNT];