mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 11:48:06 +02:00
replace IntelFlush(), FLUSH_VERTICES(), etc. with st_flush() call
This commit is contained in:
parent
08f88cbbc9
commit
156e490699
3 changed files with 2 additions and 26 deletions
|
|
@ -147,20 +147,6 @@ static const struct dri_debug_control debug_control[] = {
|
|||
#endif
|
||||
|
||||
|
||||
void
|
||||
intelFlush(GLcontext * ctx)
|
||||
{
|
||||
struct intel_context *intel = intel_context(ctx);
|
||||
|
||||
/* Hmm:
|
||||
*/
|
||||
intel->pipe->flush( intel->pipe, 0 );
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
static void
|
||||
intelInitDriverFunctions(struct dd_function_table *functions)
|
||||
{
|
||||
|
|
@ -344,11 +330,7 @@ GLboolean
|
|||
intelUnbindContext(__DRIcontextPrivate * driContextPriv)
|
||||
{
|
||||
struct intel_context *intel = (struct intel_context *) driContextPriv->driverPrivate;
|
||||
/* XXX UnbindContext is called AFTER the new context is made current.
|
||||
Hopefully shouldn't be a problem ? */
|
||||
GLcontext *ctx = intel->st->ctx;
|
||||
FLUSH_VERTICES(ctx, 0);
|
||||
intelFlush(ctx);
|
||||
st_flush(intel->st);
|
||||
return GL_TRUE;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -139,12 +139,6 @@ extern int __intel_debug;
|
|||
#define PCI_CHIP_Q33_G 0x29D2
|
||||
|
||||
|
||||
/* ================================================================
|
||||
* intel_context.c:
|
||||
*/
|
||||
|
||||
extern void intelFlush(GLcontext * ctx);
|
||||
|
||||
/*======================================================================
|
||||
* Inline conversion functions.
|
||||
* These are better-typed than the macros used previously:
|
||||
|
|
|
|||
|
|
@ -417,7 +417,7 @@ intelPageFlip(const __DRIdrawablePrivate * dPriv)
|
|||
if (intel->intelScreen->drmMinor < 9)
|
||||
return GL_FALSE;
|
||||
|
||||
intelFlush(&intel->ctx);
|
||||
st_flush(intel->st);
|
||||
|
||||
ret = 0;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue