hw/gles2.c: fix inconsistency in debug macros
authorIgor Mitsyanko <i.mitsyanko@samsung.com>
Thu, 26 Jul 2012 08:08:08 +0000 (12:08 +0400)
committerEvgeny Voevodin <e.voevodin@samsung.com>
Fri, 27 Jul 2012 06:31:59 +0000 (10:31 +0400)
Bring gles2.c debug macros handling to conformance with other gles files.

Signed-off-by: Igor Mitsyanko <i.mitsyanko@samsung.com>
hw/gles2.c

index 8ef6ec06edd2085c666e78f23713c5d445c79728..d95ff8332847b6008782e8c5650055008c0122f8 100644 (file)
@@ -65,7 +65,7 @@ int gles2_transfer_compile(gles2_CompiledTransfer* tfr, gles2_State *s,
     tfr->nsections = 0;
     tfr->sections = 0;
 
-#if (CONFIG_DEBUG_GLES == 1)
+#ifdef CONFIG_DEBUG_GLES
     target_ulong first_page = TARGET_PAGE(va);
 #endif // CONFIG_DEBUG_GLES == 1
 
@@ -83,7 +83,7 @@ int gles2_transfer_compile(gles2_CompiledTransfer* tfr, gles2_State *s,
         {
             return 0;
         }
-#if (CONFIG_DEBUG_GLES == 1)
+#ifdef CONFIG_DEBUG_GLES
         target_ulong end_pa = start_pa;
 #endif // CONFIG_DEBUG_GLES == 1
 
@@ -104,7 +104,7 @@ int gles2_transfer_compile(gles2_CompiledTransfer* tfr, gles2_State *s,
             }
 
             end_page = next_page;
-#if (CONFIG_DEBUG_GLES == 1)
+#ifdef CONFIG_DEBUG_GLES
             end_pa = next_pa;
 #endif // CONFIG_DEBUG_GLES == 1
         }
@@ -175,7 +175,7 @@ void gles2_transfer_free(gles2_CompiledTransfer* tfr)
 int gles2_transfer(gles2_State *s, target_ulong va, target_ulong len,
     void* data, int access_type)
 {
-#if (CONFIG_DEBUG_GLES == 1)
+#ifdef CONFIG_DEBUG_GLES
     target_ulong first_page = TARGET_PAGE(va);
 #endif // CONFIG_DEBUG_GLES == 1
 
@@ -193,7 +193,7 @@ int gles2_transfer(gles2_State *s, target_ulong va, target_ulong len,
         {
             return 0;
         }
-#if (CONFIG_DEBUG_GLES == 1)
+#ifdef CONFIG_DEBUG_GLES
         target_ulong end_pa = start_pa;
 #endif // CONFIG_DEBUG_GLES == 1
 
@@ -214,7 +214,7 @@ int gles2_transfer(gles2_State *s, target_ulong va, target_ulong len,
             }
 
             end_page = next_page;
-#if (CONFIG_DEBUG_GLES == 1)
+#ifdef CONFIG_DEBUG_GLES
             end_pa = next_pa;
 #endif // CONFIG_DEBUG_GLES == 1
         }