glsl/linker: remove direct gl_context usage in favour of consts/exts/api
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14433>
This commit is contained in:
@@ -97,12 +97,15 @@ struct tfeedback_candidate
|
||||
class tfeedback_decl
|
||||
{
|
||||
public:
|
||||
void init(struct gl_context *ctx, const void *mem_ctx, const char *input);
|
||||
void init(const struct gl_constants *consts,
|
||||
const struct gl_extensions *exts,
|
||||
const void *mem_ctx, const char *input);
|
||||
static bool is_same(const tfeedback_decl &x, const tfeedback_decl &y);
|
||||
bool assign_location(struct gl_context *ctx,
|
||||
bool assign_location(const struct gl_constants *consts,
|
||||
struct gl_shader_program *prog);
|
||||
unsigned get_num_outputs() const;
|
||||
bool store(struct gl_context *ctx, struct gl_shader_program *prog,
|
||||
bool store(const struct gl_constants *consts,
|
||||
struct gl_shader_program *prog,
|
||||
struct gl_transform_feedback_info *info, unsigned buffer,
|
||||
unsigned buffer_index, const unsigned max_outputs,
|
||||
BITSET_WORD *used_components[MAX_FEEDBACK_BUFFERS],
|
||||
|
Reference in New Issue
Block a user