struct gl_texture_image;
struct gl_texture_object;
struct gl_memory_info;
+struct gl_sampler_object;
struct gl_transform_feedback_object;
struct gl_vertex_array_object;
struct ati_fragment_shader;
void (*TextureBarrier)(struct gl_context *ctx);
/**
- * \name GL_ARB_sampler_objects
- */
- struct gl_sampler_object * (*NewSamplerObject)(struct gl_context *ctx,
- GLuint name);
-
- /**
* \name Return a timestamp in nanoseconds as defined by GL_ARB_timer_query.
* This should be equivalent to glGetInteger64v(GL_TIMESTAMP);
*/
_mesa_init_sampler_handles(sampObj);
}
-/**
- * Fallback for ctx->Driver.NewSamplerObject();
- */
-struct gl_sampler_object *
+static struct gl_sampler_object *
_mesa_new_sampler_object(struct gl_context *ctx, GLuint name)
{
struct gl_sampler_object *sampObj = CALLOC_STRUCT(gl_sampler_object);
for (i = 0; i < count; i++) {
struct gl_sampler_object *sampObj;
- sampObj = ctx->Driver.NewSamplerObject(ctx, samplers[i]);
+ sampObj = _mesa_new_sampler_object(ctx, samplers[i]);
if (!sampObj) {
_mesa_HashUnlockMutex(ctx->Shared->SamplerObjects);
_mesa_error(ctx, GL_OUT_OF_MEMORY, "%s", caller);
_mesa_error(ctx, GL_INVALID_ENUM, "glGetSamplerParameterIuiv(pname=%s)",
_mesa_enum_to_string(pname));
}
-
-
-void
-_mesa_init_sampler_object_functions(struct dd_function_table *driver)
-{
- driver->NewSamplerObject = _mesa_new_sampler_object;
-}
extern struct gl_sampler_object *
_mesa_lookup_samplerobj(struct gl_context *ctx, GLuint name);
-extern struct gl_sampler_object *
-_mesa_new_sampler_object(struct gl_context *ctx, GLuint name);
-
-extern void
-_mesa_init_sampler_object_functions(struct dd_function_table *driver);
-
extern void
_mesa_set_sampler_wrap(struct gl_context *ctx, struct gl_sampler_object *samp,
GLenum s, GLenum t, GLenum r);
#include "main/context.h"
#include "main/debug_output.h"
#include "main/glthread.h"
-#include "main/samplerobj.h"
#include "main/shaderobj.h"
#include "main/state.h"
#include "main/version.h"
struct dd_function_table *functions,
bool has_egl_image_validate)
{
- _mesa_init_sampler_object_functions(functions);
-
st_init_draw_functions(screen, functions);
st_init_blit_functions(functions);
st_init_bufferobject_functions(screen, functions);