}
+void
+lp_debug_fs_variant(const struct lp_fragment_shader_variant *variant)
+{
+ debug_printf("llvmpipe: Fragment shader #%u variant #%u:\n",
+ variant->shader->no, variant->no);
+ tgsi_dump(variant->shader->base.tokens, 0);
+ dump_fs_variant_key(&variant->key);
+ debug_printf("variant->opaque = %u\n", variant->opaque);
+ debug_printf("\n");
+}
static struct lp_fragment_shader_variant *
generate_variant(struct llvmpipe_context *lp,
memcpy(&variant->key, key, shader->variant_key_size);
if (gallivm_debug & GALLIVM_DEBUG_IR) {
- debug_printf("llvmpipe: Creating fragment shader #%u variant #%u:\n",
- shader->no, variant->no);
- tgsi_dump(shader->base.tokens, 0);
- dump_fs_variant_key(key);
+ lp_debug_fs_variant(variant);
}
generate_fragment(lp, shader, variant, RAST_WHOLE);