From 4ccf324e48a09e39b7606b2cd15f70b8126094d9 Mon Sep 17 00:00:00 2001 From: Milang Date: Mon, 19 Aug 2019 12:10:06 +0200 Subject: [PATCH] rename some static variables --- src/FxEngine/zbuffer.c | 28 +++++++++++++--------------- 1 file changed, 13 insertions(+), 15 deletions(-) diff --git a/src/FxEngine/zbuffer.c b/src/FxEngine/zbuffer.c index 9a06cca..fdbaf71 100644 --- a/src/FxEngine/zbuffer.c +++ b/src/FxEngine/zbuffer.c @@ -9,26 +9,24 @@ #include #include +/* size_uint32 + taille du zbuffer exprimée en uint32_t + utile pour l'effacement du zbuffer sur sh3 */ +static const uint32_t size_int32 = FE_ZB_SIZE_X*FE_ZB_SIZE_Y; - - -/** size_uint32 - * taille du zbuffer exprimée en uint32_t - * utile pour l'effacement du zbuffer sur sh3 -**/ -static const uint32_t size_uint32 = FE_ZB_SIZE_X*FE_ZB_SIZE_Y; - -/** size_char - * taille du zbuffer exprimée en octets - * utile pour malloc -**/ -static const uint32_t size_char = size_uint32*sizeof(int32_t); +/* size_char + taille du zbuffer exprimée en octets + utile pour malloc */ +static const uint32_t size_char = size_int32*sizeof(int32_t); /* size_char taille du zbuffer exprimée en octets utile pour le DMA */ static const uint32_t size_blocks = size_char/32; +/* en attente de reponse +static int32_t address[size_uint32]; +*/ /** address * addresse du zbuffer @@ -65,13 +63,13 @@ void FE_zbuffer_clear() while (1==1) getkey(); } - clearval[0]=3000; clearval[1]=3000; clearval[2]=3000; clearval[3]=3000; clearval[4]=3000; clearval[5]=3000; clearval[6]=3000; clearval[7]=3000; clearval[0]=3000; + clearval[0]=3000; clearval[1]=3000; clearval[2]=3000; clearval[3]=3000; clearval[4]=3000; clearval[5]=3000; clearval[6]=3000; clearval[7]=3000; } // TODO déterminer le type d'effacement if (isSH3()) { // effacement CPU uint_fast16_t indice; - for (indice = 0; indice < size_uint32; indice ++) + for (indice = 0; indice < size_int32; indice ++) address[indice] = clearval[0]; } else