case PIPE_CAP_INTEGER_MULTIPLY_32X16:
return 0;
+ case PIPE_CAP_FRONTEND_NOOP:
+ /* Enables INTEL_blackhole_render */
+ return 0;
+
default:
unreachable("bad PIPE_CAP_*");
}
/*@}*/
+ /**
+ * INTEL_blackhole_render
+ */
+ /*@{*/
+
+ void (*set_frontend_noop)(struct pipe_context *,
+ bool enable);
+
+ /*@}*/
+
+
/**
* Resource functions for blit-like functionality
*
PIPE_CAP_MAX_VERTEX_BUFFERS,
PIPE_CAP_OPENCL_INTEGER_FUNCTIONS,
PIPE_CAP_INTEGER_MULTIPLY_32X16,
+ /* Turn draw, dispatch, blit into NOOP */
+ PIPE_CAP_FRONTEND_NOOP,
};
/**
case GL_DEBUG_OUTPUT_SYNCHRONOUS:
st_update_debug_callback(st);
break;
+ case GL_BLACKHOLE_RENDER_INTEL:
+ st->pipe->set_frontend_noop(st->pipe, ctx->IntelBlackholeRender);
+ break;
default:
break;
}
{ o(OES_texture_float_linear), PIPE_CAP_TEXTURE_FLOAT_LINEAR },
{ o(OES_texture_half_float_linear), PIPE_CAP_TEXTURE_HALF_FLOAT_LINEAR },
{ o(OES_texture_view), PIPE_CAP_SAMPLER_VIEW_TARGET },
+ { o(INTEL_blackhole_render), PIPE_CAP_FRONTEND_NOOP, },
};
/* Required: render target and sampler support */