{
if (ctx->DrawBuffer && _mesa_is_winsys_fbo(ctx->DrawBuffer)) {
struct brw_context *const brw = brw_context(ctx);
- struct intel_context *const intel = intel_context(ctx);
const bool was_front_buffer_rendering = brw->is_front_buffer_rendering;
brw->is_front_buffer_rendering = (mode == GL_FRONT_LEFT)
* (including the fake front) before we start rendering again.
*/
if (!was_front_buffer_rendering && brw->is_front_buffer_rendering)
- dri2InvalidateDrawable(intel->driContext->driDrawablePriv);
+ dri2InvalidateDrawable(brw->driContext->driDrawablePriv);
}
}
{
if (ctx->DrawBuffer && _mesa_is_winsys_fbo(ctx->DrawBuffer)) {
struct brw_context *const brw = brw_context(ctx);
- struct intel_context *const intel = intel_context(ctx);
const bool was_front_buffer_reading = brw->is_front_buffer_reading;
brw->is_front_buffer_reading = mode == GL_FRONT_LEFT || mode == GL_FRONT;
* (including the fake front) before we start reading again.
*/
if (!was_front_buffer_reading && brw->is_front_buffer_reading)
- dri2InvalidateDrawable(intel->driContext->driReadablePriv);
+ dri2InvalidateDrawable(brw->driContext->driReadablePriv);
}
}
{
struct brw_context *brw = brw_context(ctx);
struct intel_context *intel = intel_context(ctx);
- __DRIcontext *driContext = intel->driContext;
+ __DRIcontext *driContext = brw->driContext;
__DRIdrawable *driDrawable = driContext->driDrawablePriv;
__DRIscreen *const screen = intel->intelScreen->driScrnPriv;
void
intel_prepare_render(struct brw_context *brw)
{
- struct intel_context *intel = &brw->intel;
- __DRIcontext *driContext = intel->driContext;
+ __DRIcontext *driContext = brw->driContext;
__DRIdrawable *drawable;
drawable = driContext->driDrawablePriv;
}
driContextPriv->driverPrivate = intel;
- intel->driContext = driContextPriv;
+ brw->driContext = driContextPriv;
intel->driFd = sPriv->fd;
intel->gen = intelScreen->gen;