v3dv: define broadcom shader stages
Mostly the same that main mesa gl_shader_stage, but including the coordinate shader. This would allow to loop over all the available stages (for example if we need to free them, compute the max spill size, etc). Reviewed-by: Iago Toral Quiroga <itoral@igalia.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9403>
This commit is contained in:

committed by
Marge Bot

parent
d7f4038374
commit
0b98f20310
@@ -260,6 +260,19 @@ struct v3dv_pipeline_cache_stats {
|
||||
uint32_t count;
|
||||
};
|
||||
|
||||
/* Equivalent to gl_shader_stage, but including the coordinate shaders
|
||||
*
|
||||
* FIXME: perhaps move to common
|
||||
*/
|
||||
typedef enum {
|
||||
BROADCOM_SHADER_VERTEX,
|
||||
BROADCOM_SHADER_VERTEX_BIN,
|
||||
BROADCOM_SHADER_FRAGMENT,
|
||||
BROADCOM_SHADER_COMPUTE,
|
||||
} broadcom_shader_stage;
|
||||
|
||||
#define BROADCOM_SHADER_STAGES (BROADCOM_SHADER_COMPUTE + 1)
|
||||
|
||||
struct v3dv_pipeline_cache {
|
||||
struct vk_object_base base;
|
||||
|
||||
|
Reference in New Issue
Block a user