From: Igor Mitsyanko Date: Thu, 26 Jul 2012 08:08:08 +0000 (+0400) Subject: hw/gles2.c: fix inconsistency in debug macros X-Git-Tag: Tizen_Studio_1.3_Release_p2.3.1~1405^2~50 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ba4c1e6da72f0f9e89c02ff6d231807df540f823;p=sdk%2Femulator%2Fqemu.git hw/gles2.c: fix inconsistency in debug macros Bring gles2.c debug macros handling to conformance with other gles files. Signed-off-by: Igor Mitsyanko --- diff --git a/hw/gles2.c b/hw/gles2.c index 8ef6ec06ed..d95ff83328 100644 --- a/hw/gles2.c +++ b/hw/gles2.c @@ -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 }