mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 08:50:13 +01:00
glsl: prepare parse state for mesh shader
Reviewed-by: Alyssa Rosenzweig <alyssa@rosenzweig.io> Reviewed-by: Ian Romanick <ian.d.romanick@intel.com> Acked-by: Marek Olšák <marek.olsak@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36405>
This commit is contained in:
parent
93024ea247
commit
2b8c273322
2 changed files with 2 additions and 1 deletions
|
|
@ -63,7 +63,7 @@ static const unsigned known_desktop_gl_versions[] =
|
|||
_mesa_glsl_parse_state::_mesa_glsl_parse_state(struct gl_context *_ctx,
|
||||
mesa_shader_stage stage,
|
||||
void *mem_ctx)
|
||||
: ctx(_ctx), exts(&_ctx->Extensions), consts(&_ctx->Const),
|
||||
: ctx(_ctx), exts(&_ctx->Extensions), consts(&_ctx->Const), caps(&_ctx->screen->caps),
|
||||
api(_ctx->API), cs_input_local_size_specified(false), cs_input_local_size(),
|
||||
switch_state(), warnings_enabled(true)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -383,6 +383,7 @@ struct _mesa_glsl_parse_state {
|
|||
struct gl_context *const ctx; /* only to be used for debug callback. */
|
||||
const struct gl_extensions *exts;
|
||||
const struct gl_constants *consts;
|
||||
const struct pipe_caps *caps;
|
||||
gl_api api;
|
||||
void *scanner;
|
||||
ir_exec_list translation_unit;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue