#include <stdint.h>
#include "config.h"
-#include "errors.h"
#include "format_pack.h"
#include "format_utils.h"
#include "macros.h"
case MESA_FORMAT_Z32_FLOAT_S8X24_UINT:
return pack_float_Z_FLOAT32;
default:
- _mesa_problem(NULL,
- "unexpected format in _mesa_get_pack_float_z_func()");
- return NULL;
+ unreachable("unexpected format in _mesa_get_pack_float_z_func()");
}
}
case MESA_FORMAT_Z32_FLOAT_S8X24_UINT:
return pack_uint_Z_FLOAT32;
default:
- _mesa_problem(NULL, "unexpected format in _mesa_get_pack_uint_z_func()");
- return NULL;
+ unreachable("unexpected format in _mesa_get_pack_uint_z_func()");
}
}
case MESA_FORMAT_Z32_FLOAT_S8X24_UINT:
return pack_ubyte_stencil_Z32_FLOAT_X24S8;
default:
- _mesa_problem(NULL,
- "unexpected format in _mesa_pack_ubyte_stencil_func()");
- return NULL;
+ unreachable("unexpected format in _mesa_pack_ubyte_stencil_func()");
}
}
}
break;
default:
- _mesa_problem(NULL, "unexpected format in _mesa_pack_float_z_row()");
+ unreachable("unexpected format in _mesa_pack_float_z_row()");
}
}
}
break;
default:
- _mesa_problem(NULL, "unexpected format in _mesa_pack_uint_z_row()");
+ unreachable("unexpected format in _mesa_pack_uint_z_row()");
}
}
}
break;
default:
- _mesa_problem(NULL, "unexpected format in _mesa_pack_ubyte_stencil_row()");
+ unreachable("unexpected format in _mesa_pack_ubyte_stencil_row()");
}
}
}
break;
default:
- _mesa_problem(NULL, "bad format %s in _mesa_pack_ubyte_s_row",
- _mesa_get_format_name(format));
- return;
+ unreachable("bad format in _mesa_pack_ubyte_s_row");
}
}
}
}
else {
- _mesa_problem(NULL, "unexpected size in _mesa_pack_colormask()");
- return;
+ unreachable("unexpected size in _mesa_pack_colormask()");
}
}
break;
default:
- _mesa_problem(NULL, "unexpected format data type in gen_color_mask()");
- return;
+ unreachable("unexpected format data type in gen_color_mask()");
}
}
"""
#include <stdint.h>
-#include "errors.h"
#include "format_unpack.h"
#include "format_utils.h"
#include "macros.h"
unpack_float_ycbcr_rev(src, dst, n);
break;
default:
- _mesa_problem(NULL, "%s: bad format %s", __func__,
- _mesa_get_format_name(format));
- return;
+ unreachable("bad format");
}
}
break;
%endfor
default:
- _mesa_problem(NULL, "%s: bad format %s", __func__,
- _mesa_get_format_name(format));
- return;
+ unreachable("bad format");
}
}
unpack = unpack_float_z_Z32X24S8;
break;
default:
- _mesa_problem(NULL, "bad format %s in _mesa_unpack_float_z_row",
- _mesa_get_format_name(format));
- return;
+ unreachable("bad format in _mesa_unpack_float_z_row");
}
unpack(n, src, dst);
unpack = unpack_uint_Z_FLOAT32_X24S8;
break;
default:
- _mesa_problem(NULL, "bad format %s in _mesa_unpack_uint_z_row",
- _mesa_get_format_name(format));
- return;
+ unreachable("bad format %s in _mesa_unpack_uint_z_row");
}
unpack(srcPtr, dst, n);
unpack_ubyte_s_Z32_FLOAT_S8X24_UINT(src, dst, n);
break;
default:
- _mesa_problem(NULL, "bad format %s in _mesa_unpack_ubyte_s_row",
- _mesa_get_format_name(format));
- return;
+ unreachable("bad format %s in _mesa_unpack_ubyte_s_row");
}
}
unpack_uint_24_8_depth_stencil_Z32_S8X24(src, dst, n);
break;
default:
- _mesa_problem(NULL,
- "bad format %s in _mesa_unpack_uint_24_8_depth_stencil_row",
- _mesa_get_format_name(format));
- return;
+ unreachable("bad format %s in _mesa_unpack_uint_24_8_depth_stencil_row");
}
}
unpack_float_32_uint_24_8_Z32_FLOAT_S8X24_UINT(src, dst, n);
break;
default:
- _mesa_problem(NULL,
- "bad format %s in _mesa_unpack_uint_24_8_depth_stencil_row",
- _mesa_get_format_name(format));
- return;
+ unreachable("bad format %s in _mesa_unpack_uint_24_8_depth_stencil_row");
}
}
_mesa_unpack_float_32_uint_24_8_depth_stencil_row(format, n, src, dst);
break;
default:
- _mesa_problem(NULL,
- "bad type 0x%x in _mesa_unpack_depth_stencil_row",
- type);
- return;
+ unreachable("bad type 0x%x in _mesa_unpack_depth_stencil_row");
}
}
"""