summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/nv50/nv50_context.h
diff options
context:
space:
mode:
authorChristoph Bumiller <[email protected]>2009-08-14 18:23:55 +0200
committerChristoph Bumiller <[email protected]>2009-08-14 18:23:55 +0200
commit442a5e434381987a426192e2b7d34847de50a0ed (patch)
treec8b33bcf3c9f8aa81d3557ed2510da8c5a6ee813 /src/gallium/drivers/nv50/nv50_context.h
parent3506d7d3e2b5ed57cb3f0653421226a863555ae1 (diff)
nv50: fix mipmap offsets and tiling
The hardware expects a texture's tile mode to change with the mipmap level. Also, only multiply by block size once to obtain size.
Diffstat (limited to 'src/gallium/drivers/nv50/nv50_context.h')
-rw-r--r--src/gallium/drivers/nv50/nv50_context.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/drivers/nv50/nv50_context.h b/src/gallium/drivers/nv50/nv50_context.h
index 9b8cc4d37d0..5cbc2c8f823 100644
--- a/src/gallium/drivers/nv50/nv50_context.h
+++ b/src/gallium/drivers/nv50/nv50_context.h
@@ -71,6 +71,7 @@ struct nv50_sampler_stateobj {
struct nv50_miptree_level {
int *image_offset;
unsigned pitch;
+ unsigned tile_mode;
};
struct nv50_miptree {