Commit 8d7dab5c authored by Alyssa Rosenzweig's avatar Alyssa Rosenzweig 💜

Misc debugging etc

parent b23148a4
......@@ -141,15 +141,17 @@ void main() {
uint8_t *out = malloc(TW*TH*4*2);
for (int i = 0; i < 300; ++i) {
for (int i = 0; i < 360; ++i) {
//swizzle_bpp4_align16(TW, TH, TW*4, TW>>4, (uint32_t *) in, (uint32_t *) out);
//trans_texture_swizzle_bpp4(TW, TH, TW*4, (uint32_t *) in, (uint32_t *) out);
trans_texture_swizzle(TW, TH, 4, TW*4, (uint32_t *) in, (uint32_t *) out);
}
#if 0
uint8_t *reference = malloc(TW*TH*4*2);
trans_texture_swizzle(TW, TH, 4, TW*4, (uint8_t *) in, (uint8_t *) reference);
if(memcmp(reference, out, TW*TH*4)) printf("XXX\n");
#endif
}
#endif
......@@ -655,7 +655,9 @@ trans_make_stencil_state(const struct pipe_stencil_state *in, struct mali_stenci
out->ref = 0; /* Gallium gets it from else where */
out->mask = in->valuemask;
printf("Value mask %X\n", in->valuemask);
out->func = trans_translate_compare_func(in->func);
printf("stencil alt %d, %d, %D\n", in->func, out->func);
out->sfail = trans_translate_stencil_op(in->fail_op);
out->dpfail = trans_translate_stencil_op(in->zfail_op);
out->dppass = trans_translate_stencil_op(in->zpass_op);
......@@ -1531,10 +1533,13 @@ panfrost_set_stencil_ref(
{
struct panfrost_context *ctx = panfrost_context(pctx);
printf("Ref %d, %d\n", ref->ref_value[0], ref->ref_value[1]);
ctx->fragment_shader_core.stencil_front.ref = ref->ref_value[0];
ctx->fragment_shader_core.stencil_back.ref = ref->ref_value[1];
}
/* Shader core dirty */
ctx->dirty |= PAN_DIRTY_FS;
}
static struct pipe_sampler_view *
panfrost_create_sampler_view(
......@@ -1837,7 +1842,8 @@ panfrost_bind_depth_stencil_state(struct pipe_context *pipe,
/* Bounds test not implemented */
assert(!depth_stencil->depth.bounds_test);
//assert(depth_stencil->depth.writemask); /* XXX research */
ctx->dirty |= PAN_DIRTY_FS;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment