mtypes: more gl_active_atomic_buffer to shader_types.h

allows dropping mtypes.h in glsl compiler

Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14437>
This commit is contained in:
Dave Airlie 2022-01-07 14:45:26 +10:00 committed by Marge Bot
parent 0eb50f738d
commit cc38e6e7d3
4 changed files with 23 additions and 22 deletions

View file

@ -26,7 +26,8 @@
#include "linker_util.h"
#include "gl_nir_linker.h"
#include "compiler/glsl/ir_uniform.h" /* for gl_uniform_storage */
#include "main/context.h"
#include "main/consts_exts.h"
#include "main/shader_types.h"
/**
* This file do the common link for GLSL atomic counter uniforms, using NIR,

View file

@ -27,7 +27,8 @@
#include "linker.h"
#include "main/errors.h"
#include "main/macros.h"
#include "main/mtypes.h"
#include "main/consts_exts.h"
#include "main/shader_types.h"
namespace {
/*

View file

@ -2352,26 +2352,6 @@ struct gl_uniform_block
GLboolean _RowMajor;
};
/**
* Structure that represents a reference to an atomic buffer from some
* shader program.
*/
struct gl_active_atomic_buffer
{
/** Uniform indices of the atomic counters declared within it. */
GLuint *Uniforms;
GLuint NumUniforms;
/** Binding point index associated with it. */
GLuint Binding;
/** Minimum reasonable size it is expected to have. */
GLuint MinimumSize;
/** Shader stages making use of it. */
GLboolean StageReferences[MESA_SHADER_STAGES];
};
/**
* Data container for shader queries. This holds only the minimal
* amount of required information for resource queries to work.

View file

@ -689,5 +689,24 @@ struct gl_program
};
};
/**
* Structure that represents a reference to an atomic buffer from some
* shader program.
*/
struct gl_active_atomic_buffer
{
/** Uniform indices of the atomic counters declared within it. */
GLuint *Uniforms;
GLuint NumUniforms;
/** Binding point index associated with it. */
GLuint Binding;
/** Minimum reasonable size it is expected to have. */
GLuint MinimumSize;
/** Shader stages making use of it. */
GLboolean StageReferences[MESA_SHADER_STAGES];
};
#endif