static void gen5_wm_projective_nomask(void)
{
	uint32_t store[128];
	struct brw_compile p;

	brw_compile_init(&p, 50, store);
	brw_wm_kernel__projective(&p, 16);

	compare(ps_kernel_nomask_projective);
}
static void gen5_wm_affine_mask_ca(void)
{
	uint32_t store[128];
	struct brw_compile p;

	brw_compile_init(&p, 50, store);
	brw_wm_kernel__affine_mask_ca(&p, 16);

	compare(ps_kernel_maskca_affine);
}
static void gen5_sf_mask(void)
{
	uint32_t store[128];
	struct brw_compile p;

	brw_compile_init(&p, 50, store);
	brw_sf_kernel__mask(&p);

	compare(sf_kernel_mask);
}
示例#4
0
static void gen6_ps_nomask_projective(void)
{
	uint32_t store[1024];
	struct brw_compile p;

	brw_compile_init(&p, 060, store);
	brw_wm_kernel__projective(&p, 16);

	compare(ps_kernel_nomask_projective);
}
示例#5
0
static void gen6_ps_mask_affine(void)
{
	uint32_t store[1024];
	struct brw_compile p;

	brw_compile_init(&p, 060, store);
	brw_wm_kernel__affine_mask(&p, 16);

	compare(ps_kernel_masknoca_affine);
}
示例#6
0
unsigned
sna_static_stream_compile_sf(struct sna *sna,
			     struct sna_static_stream *stream,
			     bool (*compile)(struct brw_compile *))
{
	struct brw_compile p;

	brw_compile_init(&p, sna->kgem.gen,
			 sna_static_stream_map(stream,
					       64*sizeof(uint32_t), 64));

	if (!compile(&p)) {
		stream->used -= 64*sizeof(uint32_t);
		return 0;
	}

	assert(p.nr_insn*sizeof(struct brw_instruction) <= 64*sizeof(uint32_t));

	stream->used -= 64*sizeof(uint32_t) - p.nr_insn*sizeof(struct brw_instruction);
	return sna_static_stream_offsetof(stream, p.store);
}