diff options
author | Marek Olšák <[email protected]> | 2010-06-20 05:30:04 +0200 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2010-06-20 05:30:04 +0200 |
commit | e8f2adf8e3f381176703bf8bf4e927c8ce6bc891 (patch) | |
tree | 28f545f4976d155cad715a70454462f48cb77e40 /src/gallium/drivers/r300/r300_state_derived.c | |
parent | c85e53bebf325b00db175bc05886a9281e95b0cc (diff) |
r300g: manually assign texture cache regions
This should fix corrupted texturing on r3xx-r4xx.
Diffstat (limited to 'src/gallium/drivers/r300/r300_state_derived.c')
-rw-r--r-- | src/gallium/drivers/r300/r300_state_derived.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gallium/drivers/r300/r300_state_derived.c b/src/gallium/drivers/r300/r300_state_derived.c index b5f011b9b6f..1e5a2721651 100644 --- a/src/gallium/drivers/r300/r300_state_derived.c +++ b/src/gallium/drivers/r300/r300_state_derived.c @@ -554,6 +554,9 @@ static void r300_merge_textures_and_samplers(struct r300_context* r300) texstate->filter1 = sampler->filter1; texstate->border_color = sampler->border_color; + /* Assign a texture cache region. */ + texstate->format.format1 |= view->texcache_region; + /* If compare mode is disabled, the sampler view swizzles * are stored in the format. * Otherwise, swizzles must be applied after the compare mode |