diff options
author | Marek Olšák <maraeo@gmail.com> | 2011-07-22 18:58:30 +0200 |
---|---|---|
committer | Marek Olšák <maraeo@gmail.com> | 2011-07-25 23:10:39 +0200 |
commit | 28a336dc38c478b809544e7404c4d1fddd873333 (patch) | |
tree | 5edff2035e26688e6575b1b8efe45f72e6012737 /src/gallium/drivers/r300/r300_texture_desc.c | |
parent | 818db3848bfaa002d0e7cf6b9b615a31eb82ba25 (diff) | |
download | external_mesa3d-28a336dc38c478b809544e7404c4d1fddd873333.zip external_mesa3d-28a336dc38c478b809544e7404c4d1fddd873333.tar.gz external_mesa3d-28a336dc38c478b809544e7404c4d1fddd873333.tar.bz2 |
winsys/radeon: simplify how value queries work
This drops the get_value query and adds a function query_info, which returns
all the values in one nice structure.
Diffstat (limited to 'src/gallium/drivers/r300/r300_texture_desc.c')
-rw-r--r-- | src/gallium/drivers/r300/r300_texture_desc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/drivers/r300/r300_texture_desc.c b/src/gallium/drivers/r300/r300_texture_desc.c index da5778b..fe4f8dd 100644 --- a/src/gallium/drivers/r300/r300_texture_desc.c +++ b/src/gallium/drivers/r300/r300_texture_desc.c @@ -360,9 +360,9 @@ static void r300_setup_hyperz_properties(struct r300_screen *screen, unsigned i, pipes; if (screen->caps.family == CHIP_FAMILY_RV530) { - pipes = screen->caps.num_z_pipes; + pipes = screen->info.r300_num_z_pipes; } else { - pipes = screen->caps.num_frag_pipes; + pipes = screen->info.r300_num_gb_pipes; } for (i = 0; i <= tex->b.b.b.last_level; i++) { |