/*@}*/
/**
- * \name Functions for GL_ARB_sample_locations
- */
- void (*GetProgrammableSampleCaps)(struct gl_context *ctx,
- const struct gl_framebuffer *fb,
- GLuint *bits, GLuint *width, GLuint *height);
-
- /*@}*/
-
- /**
* \name GREMEDY debug/marker functions
*/
/*@{*/
/**@}*/
/**
- * \name GL_ARB_texture_multisample
- */
- void (*GetSamplePosition)(struct gl_context *ctx,
- struct gl_framebuffer *fb,
- GLuint index,
- GLfloat *outValue);
-
- /**
* \name NV_vdpau_interop interface
*/
void (*VDPAUMapSurface)(struct gl_context *ctx, GLenum target,
#include "version.h"
#include "state_tracker/st_cb_queryobj.h"
+#include "state_tracker/st_cb_msaa.h"
#include "state_tracker/st_context.h"
/* This is a table driven implemetation of the glGet*v() functions.
break;
}
- ctx->Driver.GetProgrammableSampleCaps(ctx, ctx->DrawBuffer,
- &bits, &width, &height);
+ st_GetProgrammableSampleCaps(ctx, ctx->DrawBuffer,
+ &bits, &width, &height);
if (d->pname == GL_SAMPLE_LOCATION_PIXEL_GRID_WIDTH_ARB)
v->value_uint = width;
#include "main/state.h"
#include "state_tracker/st_format.h"
+#include "state_tracker/st_cb_msaa.h"
/**
* Called via glSampleCoverageARB
return;
}
- ctx->Driver.GetSamplePosition(ctx, ctx->DrawBuffer, index, val);
+ st_GetSamplePosition(ctx, ctx->DrawBuffer, index, val);
/* FBOs can be upside down (winsys always are)*/
if (ctx->DrawBuffer->FlipY)
#include "pipe/p_context.h"
-static void
+void
st_GetSamplePosition(struct gl_context *ctx,
struct gl_framebuffer *fb,
GLuint index,
}
-static void
+void
st_GetProgrammableSampleCaps(struct gl_context *ctx, const struct gl_framebuffer *fb,
GLuint *outBits, GLuint *outWidth, GLuint *outHeight)
{
*outHeight = 1;
}
}
-
-void
-st_init_msaa_functions(struct dd_function_table *functions)
-{
- functions->GetSamplePosition = st_GetSamplePosition;
- functions->GetProgrammableSampleCaps = st_GetProgrammableSampleCaps;
-}
#include "main/glheader.h"
-struct dd_function_table;
-
-extern void
-st_init_msaa_functions(struct dd_function_table *functions);
-
+void st_GetSamplePosition(struct gl_context *ctx,
+ struct gl_framebuffer *fb,
+ GLuint index,
+ GLfloat *outPos);
+void st_GetProgrammableSampleCaps(struct gl_context *ctx, const struct gl_framebuffer *fb,
+ GLuint *outBits, GLuint *outWidth, GLuint *outHeight);
#endif
#include "st_cb_drawtex.h"
#include "st_cb_eglimage.h"
#include "st_cb_feedback.h"
-#include "st_cb_msaa.h"
#include "st_cb_perfmon.h"
#include "st_cb_perfquery.h"
#include "st_cb_program.h"
st_init_eglimage_functions(functions, has_egl_image_validate);
- st_init_msaa_functions(functions);
st_init_program_functions(functions);
st_init_flush_functions(screen, functions);
st_init_compute_functions(functions);