Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff --git a/src/gallium/drivers/panfrost/pan_context.c b/src/gallium/drivers/panfrost/pan_context.c
- index 0e6ce7bd2c..4c15224734 100644
- --- a/src/gallium/drivers/panfrost/pan_context.c
- +++ b/src/gallium/drivers/panfrost/pan_context.c
- @@ -329,15 +329,13 @@ panfrost_is_scanout(struct panfrost_context *ctx)
- static void
- panfrost_new_frag_framebuffer(struct panfrost_context *ctx)
- {
- - mali_ptr framebuffer = ((struct panfrost_resource *) ctx->pipe_framebuffer.cbufs[0]->texture)->gpu[0];
- - int stride;
- + /* Depth-only framebuffer -> dummy RT by default unless cbufs > 0 */
- + mali_ptr framebuffer = 0;
- + int stride = 0;
- if (ctx->pipe_framebuffer.nr_cbufs > 0) {
- + framebuffer = ((struct panfrost_resource *) ctx->pipe_framebuffer.cbufs[0]->texture)->gpu[0];
- stride = util_format_get_stride(ctx->pipe_framebuffer.cbufs[0]->format, ctx->pipe_framebuffer.width);
- - } else {
- - /* Depth-only framebuffer -> dummy RT */
- - framebuffer = 0;
- - stride = 0;
- }
- /* The default is upside down from OpenGL's perspective. */
Advertisement
Add Comment
Please, Sign In to add comment