[Mesa-dev] Mesa (10.5): radeonsi: Cache LLVMTargetMachineRef in context instead of in screen
Michel Dänzer
michel at daenzer.net
Wed Apr 15 02:13:29 PDT 2015
On 09.04.2015 20:27, evelikov at kemper.freedesktop.org (Emil Velikov) wrote:
> @@ -2740,7 +2741,45 @@ static int si_generate_gs_copy_shader(struct si_screen *sscreen,
> return r;
> }
>
> -int si_shader_create(struct si_screen *sscreen, struct si_shader *shader)
> +static void si_dump_key(unsigned shader, union si_shader_key *key)
> +{
> + int i;
> +
> + fprintf(stderr, "SHADER KEY\n");
> +
> + switch (shader) {
> + case PIPE_SHADER_VERTEX:
> + fprintf(stderr, " instance_divisors = {");
> + for (i = 0; i < Elements(key->vs.instance_divisors); i++)
> + fprintf(stderr, !i ? "%u" : ", %u",
> + key->vs.instance_divisors[i]);
> + fprintf(stderr, "}\n");
> +
> + if (key->vs.as_es)
> + fprintf(stderr, " gs_used_inputs = 0x%"PRIx64"\n",
> + key->vs.gs_used_inputs);
> + fprintf(stderr, " as_es = %u\n", key->vs.as_es);
> + break;
> +
> + case PIPE_SHADER_GEOMETRY:
> + break;
> +
> + case PIPE_SHADER_FRAGMENT:
> + fprintf(stderr, " export_16bpc = 0x%X\n", key->ps.export_16bpc);
> + fprintf(stderr, " last_cbuf = %u\n", key->ps.last_cbuf);
> + fprintf(stderr, " color_two_side = %u\n", key->ps.color_two_side);
> + fprintf(stderr, " alpha_func = %u\n", key->ps.alpha_func);
> + fprintf(stderr, " alpha_to_one = %u\n", key->ps.alpha_to_one);
> + fprintf(stderr, " poly_stipple = %u\n", key->ps.poly_stipple);
> + break;
> +
> + default:
> + assert(0);
> + }
> +}
The si_dump_key function shouldn't have been added.
--
Earthling Michel Dänzer | http://www.amd.com
Libre software enthusiast | Mesa and X developer
More information about the mesa-dev
mailing list