Skip to content

Commit 234840d

Browse files
abairemborgerson
authored andcommitted
nv2a: Improve some assert messages
1 parent fe030fd commit 234840d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

hw/xbox/nv2a/pgraph/pgraph.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3063,7 +3063,7 @@ void pgraph_get_clear_color(PGRAPHState *pg, float rgba[4])
30633063
*b = 1.0f;
30643064
fprintf(stderr, "CLEAR_SURFACE for color_format 0x%x unsupported",
30653065
pg->surface_shape.color_format);
3066-
assert(false);
3066+
assert(!"CLEAR_SURFACE not supported for selected surface format");
30673067
break;
30683068
}
30693069

@@ -3077,7 +3077,7 @@ void pgraph_get_clear_color(PGRAPHState *pg, float rgba[4])
30773077
case NV097_SET_SURFACE_FORMAT_COLOR_LE_X1A7R8G8B8_Z1A7R8G8B8:
30783078
case NV097_SET_SURFACE_FORMAT_COLOR_LE_X1A7R8G8B8_O1A7R8G8B8:
30793079
*a = ((clear_color >> 24) & 0x7F) / 127.0f;
3080-
assert(false); /* Untested */
3080+
assert(!"CLEAR_SURFACE handling for LE_X1A7R8G8B8_Z1A7R8G8B8 and LE_X1A7R8G8B8_O1A7R8G8B8 is untested"); /* Untested */
30813081
break;
30823082
case NV097_SET_SURFACE_FORMAT_COLOR_LE_A8R8G8B8:
30833083
*a = ((clear_color >> 24) & 0xFF) / 255.0f;

0 commit comments

Comments
 (0)