Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6462>
{
const struct shader_info *info = &nir->info;
char *shaderdb;
{
const struct shader_info *info = &nir->info;
char *shaderdb;
- int ret = asprintf(&shaderdb,
- "%s shader: %d inst, %d loops, %d:%d spills:fills\n",
- gl_shader_stage_name(info->stage),
- comp->num_instr,
- comp->num_loops,
- comp->num_spills,
- comp->num_fills);
+ ASSERTED int ret = asprintf(&shaderdb,
+ "%s shader: %d inst, %d loops, %d:%d spills:fills\n",
+ gl_shader_stage_name(info->stage),
+ comp->num_instr,
+ comp->num_loops,
+ comp->num_spills,
+ comp->num_fills);
assert(ret >= 0);
if (lima_debug & LIMA_DEBUG_SHADERDB)
assert(ret >= 0);
if (lima_debug & LIMA_DEBUG_SHADERDB)
-static void verify_ready_list(sched_ctx *ctx)
+static void ASSERTED verify_ready_list(sched_ctx *ctx)
{
list_for_each_entry(gpir_node, node, &ctx->ready_list, list) {
if (!gpir_is_input_node(node)) {
{
list_for_each_entry(gpir_node, node, &ctx->ready_list, list) {
if (!gpir_is_input_node(node)) {
return ctx->total_spill_needed <= 0 && ctx->max_node_spill_needed <= 0;
}
return ctx->total_spill_needed <= 0 && ctx->max_node_spill_needed <= 0;
}
-static int gpir_get_curr_ready_list_slots(sched_ctx *ctx)
+static int ASSERTED gpir_get_curr_ready_list_slots(sched_ctx *ctx)
{
int total = 0;
list_for_each_entry(gpir_node, node, &ctx->ready_list, list) {
{
int total = 0;
list_for_each_entry(gpir_node, node, &ctx->ready_list, list) {
/* Verify the invariants described in gpir.h, as well as making sure the
* counts are correct.
*/
/* Verify the invariants described in gpir.h, as well as making sure the
* counts are correct.
*/
-static void verify_max_nodes(sched_ctx *ctx)
+static void ASSERTED verify_max_nodes(sched_ctx *ctx)
{
int alu_num_slot_needed_by_max = 0;
int alu_num_unscheduled_next_max = 0;
int alu_num_slot_needed_by_store = 0;
int alu_num_slot_needed_by_non_cplx_store = 0;
{
int alu_num_slot_needed_by_max = 0;
int alu_num_unscheduled_next_max = 0;
int alu_num_slot_needed_by_store = 0;
int alu_num_slot_needed_by_non_cplx_store = 0;
- int alu_max_allowed_next_max = 5;
+ ASSERTED int alu_max_allowed_next_max = 5;
list_for_each_entry(gpir_node, node, &ctx->ready_list, list) {
if (!gpir_is_input_node(node))
list_for_each_entry(gpir_node, node, &ctx->ready_list, list) {
if (!gpir_is_input_node(node))
{
const struct shader_info *info = &nir->info;
char *shaderdb;
{
const struct shader_info *info = &nir->info;
char *shaderdb;
- int ret = asprintf(&shaderdb,
- "%s shader: %d inst, %d loops, %d:%d spills:fills\n",
- gl_shader_stage_name(info->stage),
- comp->cur_instr_index,
- comp->num_loops,
- comp->num_spills,
- comp->num_fills);
+ ASSERTED int ret = asprintf(&shaderdb,
+ "%s shader: %d inst, %d loops, %d:%d spills:fills\n",
+ gl_shader_stage_name(info->stage),
+ comp->cur_instr_index,
+ comp->num_loops,
+ comp->num_spills,
+ comp->num_fills);
assert(ret >= 0);
if (lima_debug & LIMA_DEBUG_SHADERDB)
assert(ret >= 0);
if (lima_debug & LIMA_DEBUG_SHADERDB)