projects
/
mesa.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
softpipe: some improvements to texture tile cache
[mesa.git]
/
src
/
gallium
/
drivers
/
softpipe
/
sp_context.c
diff --git
a/src/gallium/drivers/softpipe/sp_context.c
b/src/gallium/drivers/softpipe/sp_context.c
index 800f944838ad1728b08fbb46125bff88f186a1fb..c2d882a819740e2382884da1da348236958eb6da 100644
(file)
--- a/
src/gallium/drivers/softpipe/sp_context.c
+++ b/
src/gallium/drivers/softpipe/sp_context.c
@@
-57,7
+57,7
@@
softpipe_map_surfaces(struct softpipe_context *sp)
{
unsigned i;
{
unsigned i;
- for (i = 0; i < sp->framebuffer.n
um
_cbufs; i++) {
+ for (i = 0; i < sp->framebuffer.n
r
_cbufs; i++) {
sp_tile_cache_map_surfaces(sp->cbuf_cache[i]);
}
sp_tile_cache_map_surfaces(sp->cbuf_cache[i]);
}
@@
-73,11
+73,11
@@
softpipe_unmap_surfaces(struct softpipe_context *sp)
{
uint i;
{
uint i;
- for (i = 0; i < sp->framebuffer.n
um
_cbufs; i++)
+ for (i = 0; i < sp->framebuffer.n
r
_cbufs; i++)
sp_flush_tile_cache(sp, sp->cbuf_cache[i]);
sp_flush_tile_cache(sp, sp->zsbuf_cache);
sp_flush_tile_cache(sp, sp->cbuf_cache[i]);
sp_flush_tile_cache(sp, sp->zsbuf_cache);
- for (i = 0; i < sp->framebuffer.n
um
_cbufs; i++) {
+ for (i = 0; i < sp->framebuffer.n
r
_cbufs; i++) {
sp_tile_cache_unmap_surfaces(sp->cbuf_cache[i]);
}
sp_tile_cache_unmap_surfaces(sp->zsbuf_cache);
sp_tile_cache_unmap_surfaces(sp->cbuf_cache[i]);
}
sp_tile_cache_unmap_surfaces(sp->zsbuf_cache);
@@
-87,7
+87,7
@@
softpipe_unmap_surfaces(struct softpipe_context *sp)
static void softpipe_destroy( struct pipe_context *pipe )
{
struct softpipe_context *softpipe = softpipe_context( pipe );
static void softpipe_destroy( struct pipe_context *pipe )
{
struct softpipe_context *softpipe = softpipe_context( pipe );
- struct pipe_
winsys *ws = pipe->winsys
;
+ struct pipe_
screen *screen = pipe->screen
;
uint i;
if (softpipe->draw)
uint i;
if (softpipe->draw)
@@
-116,7
+116,7
@@
static void softpipe_destroy( struct pipe_context *pipe )
for (i = 0; i < Elements(softpipe->constants); i++) {
if (softpipe->constants[i].buffer) {
for (i = 0; i < Elements(softpipe->constants); i++) {
if (softpipe->constants[i].buffer) {
-
winsys_buffer_reference(ws
, &softpipe->constants[i].buffer, NULL);
+
pipe_buffer_reference(screen
, &softpipe->constants[i].buffer, NULL);
}
}
}
}