struct pipe_context base;
struct brw_chipset chipset;
- struct brw_screen *brw_screen;
struct brw_winsys_screen *sws;
struct brw_batchbuffer *batch;
if (brw->curbe.vs_size) {
GLuint offset = brw->curbe.vs_start * 16;
GLuint nr = brw->curr.vertex_shader->info.file_max[TGSI_FILE_CONSTANT];
- struct pipe_screen *screen = &brw->brw_screen->base;
+ struct pipe_screen *screen = brw->base.screen;
const GLfloat *value = screen->buffer_map( screen,
brw->curr.vertex_constants,
/* Create helpers for uploading data in user buffers:
*/
- brw->vb.upload_vertex = u_upload_create( &brw->brw_screen->base,
+ brw->vb.upload_vertex = u_upload_create( brw->base.screen,
128 * 1024,
64,
PIPE_BUFFER_USAGE_VERTEX );
if (brw->vb.upload_vertex == NULL)
return FALSE;
- brw->vb.upload_index = u_upload_create( &brw->brw_screen->base,
+ brw->vb.upload_index = u_upload_create( brw->base.screen,
128 * 1024,
64,
PIPE_BUFFER_USAGE_INDEX );
struct pipe_buffer *buffer)
{
struct brw_context *brw = brw_context(pipe);
+ struct brw_screen *bscreen = brw_screen(brw->base.screen);
- return brw_is_buffer_referenced_by_bo( brw->brw_screen,
+ return brw_is_buffer_referenced_by_bo( bscreen,
buffer,
brw->batch->buf );
}
unsigned level)
{
struct brw_context *brw = brw_context(pipe);
+ struct brw_screen *bscreen = brw_screen(brw->base.screen);
- return brw_is_texture_referenced_by_bo( brw->brw_screen,
+ return brw_is_texture_referenced_by_bo( bscreen,
texture, face, level,
brw->batch->buf );
}