summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Hourihane <alanh@tungstengraphics.com>2005-03-02 18:57:01 +0000
committerAlan Hourihane <alanh@tungstengraphics.com>2005-03-02 18:57:01 +0000
commitfff3b2f318a1d05228d0128f59fe556652c70dda (patch)
tree79a31be44b5e11b7c6ebca170018229ecd8ed8ae
parentb960c14cbb4eb701ea500f54695aec1c5948d3f1 (diff)
use COPY_CLEAN_4V macro to replace using both ASSIGN_4V & COPY_SZ_4V
-rw-r--r--src/mesa/tnl/t_save_api.c6
-rw-r--r--src/mesa/tnl/t_save_playback.c3
-rw-r--r--src/mesa/tnl/t_vb_program.c3
-rw-r--r--src/mesa/tnl/t_vtx_api.c6
4 files changed, 6 insertions, 12 deletions
diff --git a/src/mesa/tnl/t_save_api.c b/src/mesa/tnl/t_save_api.c
index 684263660a..28bd376fc0 100644
--- a/src/mesa/tnl/t_save_api.c
+++ b/src/mesa/tnl/t_save_api.c
@@ -371,8 +371,7 @@ static void _save_copy_to_current( GLcontext *ctx )
for (i = _TNL_ATTRIB_POS+1 ; i <= _TNL_ATTRIB_INDEX ; i++) {
if (tnl->save.attrsz[i]) {
tnl->save.currentsz[i][0] = tnl->save.attrsz[i];
- ASSIGN_4V(tnl->save.current[i], 0, 0, 0, 1);
- COPY_SZ_4V(tnl->save.current[i],
+ COPY_CLEAN_4V(tnl->save.current[i],
tnl->save.attrsz[i],
tnl->save.attrptr[i]);
}
@@ -502,8 +501,7 @@ static void _save_upgrade_vertex( GLcontext *ctx,
if (tnl->save.attrsz[j]) {
if (j == attr) {
if (oldsz) {
- ASSIGN_4V( dest, 0, 0, 0, 1 );
- COPY_SZ_4V( dest, oldsz, data );
+ COPY_CLEAN_4V( dest, oldsz, data );
data += oldsz;
dest += newsz;
}
diff --git a/src/mesa/tnl/t_save_playback.c b/src/mesa/tnl/t_save_playback.c
index fa094b10a2..c271ba749c 100644
--- a/src/mesa/tnl/t_save_playback.c
+++ b/src/mesa/tnl/t_save_playback.c
@@ -131,8 +131,7 @@ static void _playback_copy_to_current( GLcontext *ctx,
for (i = _TNL_ATTRIB_POS+1 ; i <= _TNL_ATTRIB_INDEX ; i++) {
if (node->attrsz[i]) {
- ASSIGN_4V(tnl->vtx.current[i], 0, 0, 0, 1);
- COPY_SZ_4V(tnl->vtx.current[i], node->attrsz[i], data);
+ COPY_CLEAN_4V(tnl->vtx.current[i], node->attrsz[i], data);
data += node->attrsz[i];
}
}
diff --git a/src/mesa/tnl/t_vb_program.c b/src/mesa/tnl/t_vb_program.c
index 520775412e..614d537c30 100644
--- a/src/mesa/tnl/t_vb_program.c
+++ b/src/mesa/tnl/t_vb_program.c
@@ -133,8 +133,7 @@ run_vp( GLcontext *ctx, struct tnl_pipeline_stage *stage )
const GLuint size = VB->AttribPtr[attr]->size;
const GLuint stride = VB->AttribPtr[attr]->stride;
const GLfloat *data = (GLfloat *) (ptr + stride * i);
- ASSIGN_4V(ctx->VertexProgram.Inputs[attr], 0, 0, 0, 1);
- COPY_SZ_4V(ctx->VertexProgram.Inputs[attr], size, data);
+ COPY_CLEAN_4V(ctx->VertexProgram.Inputs[attr], size, data);
}
}
diff --git a/src/mesa/tnl/t_vtx_api.c b/src/mesa/tnl/t_vtx_api.c
index 1ba0f468ce..fabd99e5d0 100644
--- a/src/mesa/tnl/t_vtx_api.c
+++ b/src/mesa/tnl/t_vtx_api.c
@@ -147,8 +147,7 @@ static void _tnl_copy_to_current( GLcontext *ctx )
/* Note: the tnl->vtx.current[i] pointers points to
* the ctx->Current fields. The first 16 or so, anyway.
*/
- ASSIGN_4V( tnl->vtx.current[i], 0, 0, 0, 1 );
- COPY_SZ_4V(tnl->vtx.current[i],
+ COPY_CLEAN_4V(tnl->vtx.current[i],
tnl->vtx.attrsz[i],
tnl->vtx.attrptr[i]);
}
@@ -278,8 +277,7 @@ static void _tnl_wrap_upgrade_vertex( GLcontext *ctx,
if (tnl->vtx.attrsz[j]) {
if (j == attr) {
if (oldsz) {
- ASSIGN_4V( dest, 0, 0, 0, 1 );
- COPY_SZ_4V( dest, oldsz, data );
+ COPY_CLEAN_4V( dest, oldsz, data );
data += oldsz;
dest += newsz;
} else {