diff options
author | Eric Anholt <[email protected]> | 2018-12-27 19:57:03 -0800 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2019-01-14 13:18:02 -0800 |
commit | 619a28b845118707a4968ab1e3d8eb67da7a44cb (patch) | |
tree | ed3075456dcd395b90a891eacd678b318e1920cf /src/gallium/drivers/v3d/v3d_screen.c | |
parent | 051a41d3d56ee0eccf99e1871133cfaa4606b728 (diff) |
v3d: Add support for GL_ARB_framebuffer_no_attachments.
Fixes
dEQP-GLES31.functional.state_query.integer.max_framebuffer_height_getboolean
when GLES3 is enabled.
Diffstat (limited to 'src/gallium/drivers/v3d/v3d_screen.c')
-rw-r--r-- | src/gallium/drivers/v3d/v3d_screen.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gallium/drivers/v3d/v3d_screen.c b/src/gallium/drivers/v3d/v3d_screen.c index 5fd29b78785..a1ff75435f0 100644 --- a/src/gallium/drivers/v3d/v3d_screen.c +++ b/src/gallium/drivers/v3d/v3d_screen.c @@ -128,6 +128,7 @@ v3d_screen_get_param(struct pipe_screen *pscreen, enum pipe_cap param) case PIPE_CAP_TGSI_CAN_READ_OUTPUTS: case PIPE_CAP_TGSI_PACK_HALF_FLOAT: case PIPE_CAP_TEXTURE_HALF_FLOAT_LINEAR: + case PIPE_CAP_FRAMEBUFFER_NO_ATTACHMENT: return 1; case PIPE_CAP_GENERATE_MIPMAP: @@ -396,7 +397,11 @@ v3d_screen_is_format_supported(struct pipe_screen *pscreen, } } + /* FORMAT_NONE gets allowed for ARB_framebuffer_no_attachments's probe + * of FRAMEBUFFER_MAX_SAMPLES + */ if ((usage & PIPE_BIND_RENDER_TARGET) && + format != PIPE_FORMAT_NONE && !v3d_rt_format_supported(&screen->devinfo, format)) { return FALSE; } |