mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 11:28:05 +02:00
intel: Enable GL_ARB_internalformat_query
Signed-off-by: Ian Romanick <ian.d.romanick@intel.com> Reviewed-by: Eric Anholt <eric@anholt.net> Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
This commit is contained in:
parent
f5e7f12e4a
commit
3c00a52f7e
2 changed files with 24 additions and 0 deletions
|
|
@ -58,6 +58,28 @@
|
||||||
* Mesa's Driver Functions
|
* Mesa's Driver Functions
|
||||||
***************************************/
|
***************************************/
|
||||||
|
|
||||||
|
static size_t
|
||||||
|
brw_query_samples_for_format(struct gl_context *ctx, GLenum internalFormat,
|
||||||
|
int samples[16])
|
||||||
|
{
|
||||||
|
struct intel_context *intel = intel_context(ctx);
|
||||||
|
|
||||||
|
switch (intel->gen) {
|
||||||
|
case 7:
|
||||||
|
samples[0] = 8;
|
||||||
|
samples[1] = 4;
|
||||||
|
return 2;
|
||||||
|
|
||||||
|
case 6:
|
||||||
|
samples[0] = 4;
|
||||||
|
return 1;
|
||||||
|
|
||||||
|
default:
|
||||||
|
samples[0] = 1;
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
static void brwInitDriverFunctions(struct intel_screen *screen,
|
static void brwInitDriverFunctions(struct intel_screen *screen,
|
||||||
struct dd_function_table *functions)
|
struct dd_function_table *functions)
|
||||||
{
|
{
|
||||||
|
|
@ -66,6 +88,7 @@ static void brwInitDriverFunctions(struct intel_screen *screen,
|
||||||
brwInitFragProgFuncs( functions );
|
brwInitFragProgFuncs( functions );
|
||||||
brw_init_queryobj_functions(functions);
|
brw_init_queryobj_functions(functions);
|
||||||
|
|
||||||
|
functions->QuerySamplesForFormat = brw_query_samples_for_format;
|
||||||
functions->BeginTransformFeedback = brw_begin_transform_feedback;
|
functions->BeginTransformFeedback = brw_begin_transform_feedback;
|
||||||
|
|
||||||
if (screen->gen >= 7)
|
if (screen->gen >= 7)
|
||||||
|
|
|
||||||
|
|
@ -47,6 +47,7 @@ intelInitExtensions(struct gl_context *ctx)
|
||||||
ctx->Extensions.ARB_explicit_attrib_location = true;
|
ctx->Extensions.ARB_explicit_attrib_location = true;
|
||||||
ctx->Extensions.ARB_framebuffer_object = true;
|
ctx->Extensions.ARB_framebuffer_object = true;
|
||||||
ctx->Extensions.ARB_half_float_pixel = true;
|
ctx->Extensions.ARB_half_float_pixel = true;
|
||||||
|
ctx->Extensions.ARB_internalformat_query = true;
|
||||||
ctx->Extensions.ARB_map_buffer_range = true;
|
ctx->Extensions.ARB_map_buffer_range = true;
|
||||||
ctx->Extensions.ARB_point_sprite = true;
|
ctx->Extensions.ARB_point_sprite = true;
|
||||||
ctx->Extensions.ARB_shader_objects = true;
|
ctx->Extensions.ARB_shader_objects = true;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue