summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/r300/r300_render_translate.c
diff options
context:
space:
mode:
authorMarek Olšák <maraeo@gmail.com>2011-02-18 15:29:00 +0100
committerMarek Olšák <maraeo@gmail.com>2011-02-18 16:15:03 +0100
commitfd8d4b32ede6ebeae332539b71d38c36420e2654 (patch)
treeb885d31842ac9d76046872f2110a413fed4401f5 /src/gallium/drivers/r300/r300_render_translate.c
parentbb46eeade3a3eb604aba5c084d1e21942c2fa2ac (diff)
downloadexternal_mesa3d-fd8d4b32ede6ebeae332539b71d38c36420e2654.zip
external_mesa3d-fd8d4b32ede6ebeae332539b71d38c36420e2654.tar.gz
external_mesa3d-fd8d4b32ede6ebeae332539b71d38c36420e2654.tar.bz2
r300g: remove tracking whether vertex buffers need to be validated
This was getting hard to maintain and didn't really bring any real benefits. Instead, validate buffers when the vertex array state is dirty.
Diffstat (limited to 'src/gallium/drivers/r300/r300_render_translate.c')
-rw-r--r--src/gallium/drivers/r300/r300_render_translate.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/gallium/drivers/r300/r300_render_translate.c b/src/gallium/drivers/r300/r300_render_translate.c
index 7778575..f8c7558 100644
--- a/src/gallium/drivers/r300/r300_render_translate.c
+++ b/src/gallium/drivers/r300/r300_render_translate.c
@@ -48,7 +48,6 @@ void r300_translate_index_buffer(struct r300_context *r300,
pipe_resource_reference(index_buffer, out_buffer);
*index_size = 2;
*start = out_offset / 2;
- r300->validate_buffers = TRUE;
break;
case 2:
@@ -63,7 +62,6 @@ void r300_translate_index_buffer(struct r300_context *r300,
*index_buffer = NULL;
pipe_resource_reference(index_buffer, out_buffer);
*start = out_offset / 2;
- r300->validate_buffers = TRUE;
}
break;
@@ -79,7 +77,6 @@ void r300_translate_index_buffer(struct r300_context *r300,
*index_buffer = NULL;
pipe_resource_reference(index_buffer, out_buffer);
*start = out_offset / 4;
- r300->validate_buffers = TRUE;
}
break;
}