From c473ffeb39b906cd7d2c58f439cc45de2ba52126 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Sat, 2 Nov 2013 17:27:47 +0100 Subject: [PATCH] (RGL PS3) Get rid of setMatrixSharedvpindex --- ps3/rgl/src/ps3/rgl_ps3_raster.cpp | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/ps3/rgl/src/ps3/rgl_ps3_raster.cpp b/ps3/rgl/src/ps3/rgl_ps3_raster.cpp index 449a8e5a4e..27a5a0e729 100644 --- a/ps3/rgl/src/ps3/rgl_ps3_raster.cpp +++ b/ps3/rgl/src/ps3/rgl_ps3_raster.cpp @@ -201,25 +201,6 @@ template static void setMatrixvpIndex (void *dat template static void setMatrixSharedvpIndex (void *data, const void* __restrict v, const int index ) { - CgRuntimeParameter *ptr = (CgRuntimeParameter*)data; - float * __restrict f = ( float* )v; - float * __restrict dst = ( float* )ptr->pushBufferPointer; - - const CgParameterResource *parameterResource = rglGetParameterResource( ptr->program, ptr->parameterEntry ); - unsigned short resource = parameterResource->resource; - - if (isVpIndexArray) - resource += index * ROWS; - - float tmp[ROWS*4]; - for ( long row = 0; row < ROWS; ++row ) - { - for ( long col = 0; col < COLS; ++col ) - tmp[row*4 + col] = dst[row * 4 + col] = ( ORDER == ROW_MAJOR ) ? f[row * COLS + col] : f[col * ROWS + row]; - for ( long col = COLS; col < 4; ++col ) tmp[row*4 + col] = dst[row*4+col]; - } - - GCM_FUNC( cellGcmSetVertexProgramParameterBlock, resource, ROWS, (const float*)tmp); } template static void setMatrixSharedfpIndex (void *data, const void* __restrict v, const int /*index*/ )