/* Turn a pipe winsys into an intel/pipe winsys:
*/
static inline struct intel_pipe_winsys *
-intel_pipe_winsys( struct pipe_winsys *sws )
+intel_pipe_winsys( struct pipe_winsys *winsys )
{
- return (struct intel_pipe_winsys *)sws;
+ return (struct intel_pipe_winsys *)winsys;
}
/* Most callbacks map direcly onto dri_bufmgr operations:
*/
-static void *intel_buffer_map(struct pipe_winsys *sws,
+static void *intel_buffer_map(struct pipe_winsys *winsys,
struct pipe_buffer_handle *buf,
unsigned flags )
{
return driBOMap( dri_bo(buf), drm_flags, 0 );
}
-static void intel_buffer_unmap(struct pipe_winsys *sws,
+static void intel_buffer_unmap(struct pipe_winsys *winsys,
struct pipe_buffer_handle *buf)
{
driBOUnmap( dri_bo(buf) );
static void
-intel_buffer_reference(struct pipe_winsys *sws,
+intel_buffer_reference(struct pipe_winsys *winsys,
struct pipe_buffer_handle **ptr,
struct pipe_buffer_handle *buf)
{
/* Grabs the hardware lock!
*/
-static void intel_buffer_data(struct pipe_winsys *sws,
+static void intel_buffer_data(struct pipe_winsys *winsys,
struct pipe_buffer_handle *buf,
unsigned size, const void *data,
unsigned usage )
{
- struct intel_context *intel = intel_pipe_winsys(sws)->intel;
+ struct intel_context *intel = intel_pipe_winsys(winsys)->intel;
LOCK_HARDWARE( intel );
driBOData( dri_bo(buf), size, data, 0 );
UNLOCK_HARDWARE( intel );
}
-static void intel_buffer_subdata(struct pipe_winsys *sws,
+static void intel_buffer_subdata(struct pipe_winsys *winsys,
struct pipe_buffer_handle *buf,
unsigned long offset,
unsigned long size,
driBOSubData( dri_bo(buf), offset, size, data );
}
-static void intel_buffer_get_subdata(struct pipe_winsys *sws,
+static void intel_buffer_get_subdata(struct pipe_winsys *winsys,
struct pipe_buffer_handle *buf,
unsigned long offset,
unsigned long size,
* for all buffers.
*/
static struct pipe_buffer_handle *
-intel_buffer_create(struct pipe_winsys *sws,
+intel_buffer_create(struct pipe_winsys *winsys,
unsigned alignment)
{
- struct intel_context *intel = intel_pipe_winsys(sws)->intel;
+ struct intel_context *intel = intel_pipe_winsys(winsys)->intel;
struct _DriBufferObject *buffer;
LOCK_HARDWARE( intel );
static struct pipe_buffer_handle *
-intel_user_buffer_create(struct pipe_winsys *sws, void *ptr, unsigned bytes)
+intel_user_buffer_create(struct pipe_winsys *winsys, void *ptr, unsigned bytes)
{
- struct intel_context *intel = intel_pipe_winsys(sws)->intel;
+ struct intel_context *intel = intel_pipe_winsys(winsys)->intel;
struct _DriBufferObject *buffer;
LOCK_HARDWARE( intel );
}
-static void intel_wait_idle( struct pipe_winsys *sws )
+static void intel_wait_idle( struct pipe_winsys *winsys )
{
- struct intel_context *intel = intel_pipe_winsys(sws)->intel;
+ struct intel_context *intel = intel_pipe_winsys(winsys)->intel;
if (intel->batch->last_fence) {
driFenceFinish(intel->batch->last_fence,
* we copied its contents to the real frontbuffer. Our task is easy:
*/
static void
-intel_flush_frontbuffer( struct pipe_winsys *sws,
+intel_flush_frontbuffer( struct pipe_winsys *winsys,
struct pipe_surface *surf )
{
- struct intel_context *intel = intel_pipe_winsys(sws)->intel;
+ struct intel_context *intel = intel_pipe_winsys(winsys)->intel;
__DRIdrawablePrivate *dPriv = intel->driDrawable;
intelDisplaySurface(dPriv, surf, NULL);
if ((*region)->refcount == 0) {
assert((*region)->map_refcount == 0);
- winsys->buffer_reference( winsys,
- &((*region)->buffer), NULL );
+ winsys->buffer_reference( winsys, &((*region)->buffer), NULL );
free(*region);
}
*region = NULL;
static void
-intel_printf( struct pipe_winsys *sws, const char *fmtString, ... )
+intel_printf( struct pipe_winsys *winsys, const char *fmtString, ... )
{
va_list args;
va_start( args, fmtString );
}
static const char *
-intel_get_name( struct pipe_winsys *sws )
+intel_get_name( struct pipe_winsys *winsys )
{
return "Intel/DRI/ttm";
}