diff options
author | Keith Whitwell <keithw@vmware.com> | 2009-11-01 19:30:53 +0000 |
---|---|---|
committer | Keith Whitwell <keithw@vmware.com> | 2009-11-01 19:30:53 +0000 |
commit | 15a8ac2c9d6ed13468ef88f3f3bd3ccf4ee2fd0e (patch) | |
tree | f84ed0c5a9169caf1486b7325a7bc9dc6f40b63f /src/gallium/drivers/i965/brw_screen_texture.c | |
parent | efda453d646c767fbf0f8e85aa09178095ab04d6 (diff) |
i965g: driver and winsys compile
A milestone of sorts. Still a long way from something working --
the old one compiled too, at least some of the time...
Diffstat (limited to 'src/gallium/drivers/i965/brw_screen_texture.c')
-rw-r--r-- | src/gallium/drivers/i965/brw_screen_texture.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/gallium/drivers/i965/brw_screen_texture.c b/src/gallium/drivers/i965/brw_screen_texture.c index 3fd486986f..48b3451bfc 100644 --- a/src/gallium/drivers/i965/brw_screen_texture.c +++ b/src/gallium/drivers/i965/brw_screen_texture.c @@ -222,7 +222,11 @@ static struct pipe_texture *brw_texture_create( struct pipe_screen *screen, /* This is ok for all textures with channel width 8bit or less: */ /* tex->ss.ss0.data_return_format = BRW_SURFACERETURNFORMAT_S1; */ - tex->ss.ss1.base_addr = tex->bo->offset; /* reloc */ + + + /* XXX: what happens when tex->bo->offset changes??? + */ + tex->ss.ss1.base_addr = tex->bo->offset[0]; /* reloc */ tex->ss.ss2.mip_count = tex->base.last_level; tex->ss.ss2.width = tex->base.width[0] - 1; tex->ss.ss2.height = tex->base.height[0] - 1; |