panfrost: Advertise ES3.0 on Bifrost
Doing so fixes our remaining dEQP-GLES2 failures. Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com> Tested-by: Maciej Matuszczyk <maccraft123mc@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8427>
This commit is contained in:
parent
bb1b3cc9b0
commit
c7e1ef7c0c
|
@ -1,42 +1,3 @@
|
|||
dEQP-GLES2.functional.fbo.completeness.renderable.renderbuffer.color0.r16f,Fail
|
||||
dEQP-GLES2.functional.fbo.completeness.renderable.renderbuffer.color0.rg16f,Fail
|
||||
dEQP-GLES2.functional.fbo.completeness.renderable.renderbuffer.color0.rgba16f,Fail
|
||||
dEQP-GLES2.functional.fbo.completeness.renderable.renderbuffer.depth.r16f,Fail
|
||||
dEQP-GLES2.functional.fbo.completeness.renderable.renderbuffer.depth.rg16f,Fail
|
||||
dEQP-GLES2.functional.fbo.completeness.renderable.renderbuffer.depth.rgba16f,Fail
|
||||
dEQP-GLES2.functional.fbo.completeness.renderable.renderbuffer.stencil.r16f,Fail
|
||||
dEQP-GLES2.functional.fbo.completeness.renderable.renderbuffer.stencil.rg16f,Fail
|
||||
dEQP-GLES2.functional.fbo.completeness.renderable.renderbuffer.stencil.rgba16f,Fail
|
||||
dEQP-GLES2.functional.fbo.completeness.renderable.texture.color0.r8,Fail
|
||||
dEQP-GLES2.functional.fbo.completeness.renderable.texture.color0.rg8,Fail
|
||||
dEQP-GLES2.functional.fbo.completeness.renderable.texture.color0.rgb10_a2,Fail
|
||||
dEQP-GLES2.functional.fbo.completeness.renderable.texture.color0.rgb_half_float_oes,Fail
|
||||
dEQP-GLES2.functional.fbo.completeness.size.distinct,Fail
|
||||
dEQP-GLES2.functional.negative_api.shader.uniform_matrixfv_invalid_transpose,Fail
|
||||
dEQP-GLES2.functional.negative_api.texture.generatemipmap_zero_level_array_compressed,Fail
|
||||
dEQP-GLES2.functional.shaders.texture_functions.vertex.texturecubelod,Fail
|
||||
dEQP-GLES2.functional.texture.mipmap.cube.basic.linear_linear,Fail
|
||||
dEQP-GLES2.functional.texture.mipmap.cube.basic.linear_nearest,Fail
|
||||
dEQP-GLES2.functional.texture.mipmap.cube.bias.linear_linear,Fail
|
||||
dEQP-GLES2.functional.texture.mipmap.cube.bias.linear_nearest,Fail
|
||||
dEQP-GLES2.functional.texture.mipmap.cube.projected.linear_linear,Fail
|
||||
dEQP-GLES2.functional.texture.mipmap.cube.projected.linear_nearest,Fail
|
||||
dEQP-GLES2.functional.texture.vertex.cube.filtering.linear_mipmap_linear_linear_clamp,Fail
|
||||
dEQP-GLES2.functional.texture.vertex.cube.filtering.linear_mipmap_linear_linear_mirror,Fail
|
||||
dEQP-GLES2.functional.texture.vertex.cube.filtering.linear_mipmap_linear_nearest_clamp,Fail
|
||||
dEQP-GLES2.functional.texture.vertex.cube.filtering.linear_mipmap_linear_nearest_mirror,Fail
|
||||
dEQP-GLES2.functional.texture.vertex.cube.filtering.nearest_mipmap_linear_linear_clamp,Fail
|
||||
dEQP-GLES2.functional.texture.vertex.cube.filtering.nearest_mipmap_linear_linear_mirror,Fail
|
||||
dEQP-GLES2.functional.texture.vertex.cube.filtering.nearest_mipmap_linear_linear_repeat,Fail
|
||||
dEQP-GLES2.functional.texture.vertex.cube.filtering.nearest_mipmap_nearest_linear_clamp,Fail
|
||||
dEQP-GLES2.functional.texture.vertex.cube.filtering.nearest_mipmap_nearest_linear_mirror,Fail
|
||||
dEQP-GLES2.functional.texture.vertex.cube.filtering.nearest_mipmap_nearest_linear_repeat,Fail
|
||||
dEQP-GLES2.functional.texture.vertex.cube.wrap.clamp_clamp,Fail
|
||||
dEQP-GLES2.functional.texture.vertex.cube.wrap.clamp_mirror,Fail
|
||||
dEQP-GLES2.functional.texture.vertex.cube.wrap.clamp_repeat,Fail
|
||||
dEQP-GLES2.functional.texture.vertex.cube.wrap.mirror_clamp,Fail
|
||||
dEQP-GLES2.functional.texture.vertex.cube.wrap.mirror_mirror,Fail
|
||||
dEQP-GLES2.functional.texture.vertex.cube.wrap.mirror_repeat,Fail
|
||||
dEQP-GLES3.functional.fbo.blit.conversion.rgb8_to_rgba4,Fail
|
||||
dEQP-GLES3.functional.fbo.blit.conversion.rgb8_to_srgb8_alpha8,Fail
|
||||
dEQP-GLES3.functional.fbo.blit.default_framebuffer.rgb8,Fail
|
||||
|
|
|
@ -101,9 +101,8 @@ panfrost_get_param(struct pipe_screen *screen, enum pipe_cap param)
|
|||
/* Don't expose MRT related CAPs on GPUs that don't implement them */
|
||||
bool has_mrt = !(dev->quirks & MIDGARD_SFBD);
|
||||
|
||||
/* Bifrost is WIP. No MRT support yet. */
|
||||
/* Bifrost is WIP */
|
||||
bool is_bifrost = (dev->quirks & IS_BIFROST);
|
||||
has_mrt &= !is_bifrost || is_deqp;
|
||||
|
||||
switch (param) {
|
||||
case PIPE_CAP_NPOT_TEXTURES:
|
||||
|
@ -124,7 +123,7 @@ panfrost_get_param(struct pipe_screen *screen, enum pipe_cap param)
|
|||
return has_mrt ? 8 : 1;
|
||||
|
||||
case PIPE_CAP_MAX_DUAL_SOURCE_RENDER_TARGETS:
|
||||
return 1;
|
||||
return is_bifrost ? 0 : 1;
|
||||
|
||||
case PIPE_CAP_SAMPLE_SHADING:
|
||||
/* WIP */
|
||||
|
@ -138,11 +137,10 @@ panfrost_get_param(struct pipe_screen *screen, enum pipe_cap param)
|
|||
case PIPE_CAP_ANISOTROPIC_FILTER:
|
||||
return !!(dev->quirks & HAS_ANISOTROPIC);
|
||||
|
||||
/* ES3 features unsupported on Bifrost */
|
||||
case PIPE_CAP_TGSI_INSTANCEID:
|
||||
case PIPE_CAP_TEXTURE_MULTISAMPLE:
|
||||
case PIPE_CAP_SURFACE_SAMPLE_COUNT:
|
||||
return !is_bifrost || is_deqp;
|
||||
return true;
|
||||
|
||||
case PIPE_CAP_SAMPLER_VIEW_TARGET:
|
||||
case PIPE_CAP_TEXTURE_SWIZZLE:
|
||||
|
@ -163,22 +161,22 @@ panfrost_get_param(struct pipe_screen *screen, enum pipe_cap param)
|
|||
return 1;
|
||||
|
||||
case PIPE_CAP_MAX_STREAM_OUTPUT_BUFFERS:
|
||||
return (is_bifrost && !is_deqp) ? 0 : 4;
|
||||
return 4;
|
||||
case PIPE_CAP_MAX_STREAM_OUTPUT_SEPARATE_COMPONENTS:
|
||||
case PIPE_CAP_MAX_STREAM_OUTPUT_INTERLEAVED_COMPONENTS:
|
||||
return (is_bifrost && !is_deqp) ? 0 : 64;
|
||||
return 64;
|
||||
case PIPE_CAP_STREAM_OUTPUT_PAUSE_RESUME:
|
||||
case PIPE_CAP_STREAM_OUTPUT_INTERLEAVE_BUFFERS:
|
||||
return (is_bifrost && !is_deqp) ? 0 : 1;
|
||||
return 1;
|
||||
|
||||
case PIPE_CAP_MAX_TEXTURE_ARRAY_LAYERS:
|
||||
return (is_bifrost && !is_deqp) ? 0 : 256;
|
||||
return 256;
|
||||
|
||||
case PIPE_CAP_GLSL_FEATURE_LEVEL:
|
||||
case PIPE_CAP_GLSL_FEATURE_LEVEL_COMPATIBILITY:
|
||||
return is_gl3 ? 330 : (is_bifrost && !is_deqp) ? 120 : 140;
|
||||
return is_gl3 ? 330 : 140;
|
||||
case PIPE_CAP_ESSL_FEATURE_LEVEL:
|
||||
return (is_bifrost && !is_deqp) ? 120 : 300;
|
||||
return 300;
|
||||
|
||||
case PIPE_CAP_CONSTANT_BUFFER_OFFSET_ALIGNMENT:
|
||||
return 16;
|
||||
|
@ -202,7 +200,7 @@ panfrost_get_param(struct pipe_screen *screen, enum pipe_cap param)
|
|||
case PIPE_CAP_MAX_TEXTURE_2D_SIZE:
|
||||
return 4096;
|
||||
case PIPE_CAP_MAX_TEXTURE_3D_LEVELS:
|
||||
return (is_bifrost && !is_deqp) ? 0 : 13;
|
||||
return 13;
|
||||
case PIPE_CAP_MAX_TEXTURE_CUBE_LEVELS:
|
||||
return 13;
|
||||
|
||||
|
@ -224,7 +222,7 @@ panfrost_get_param(struct pipe_screen *screen, enum pipe_cap param)
|
|||
|
||||
case PIPE_CAP_SEAMLESS_CUBE_MAP:
|
||||
case PIPE_CAP_SEAMLESS_CUBE_MAP_PER_TEXTURE:
|
||||
return !is_bifrost || is_deqp;
|
||||
return true;
|
||||
|
||||
case PIPE_CAP_MAX_VERTEX_ELEMENT_SRC_OFFSET:
|
||||
return 0xffff;
|
||||
|
@ -254,8 +252,6 @@ panfrost_get_param(struct pipe_screen *screen, enum pipe_cap param)
|
|||
}
|
||||
|
||||
case PIPE_CAP_SHADER_STENCIL_EXPORT:
|
||||
return !is_bifrost || is_deqp;
|
||||
|
||||
case PIPE_CAP_CONDITIONAL_RENDER:
|
||||
case PIPE_CAP_CONDITIONAL_RENDER_INVERTED:
|
||||
return true;
|
||||
|
@ -330,7 +326,7 @@ panfrost_get_shader_param(struct pipe_screen *screen,
|
|||
return 0;
|
||||
|
||||
case PIPE_SHADER_CAP_INDIRECT_INPUT_ADDR:
|
||||
return (is_bifrost && !is_deqp) ? 0 : 1;
|
||||
return 1;
|
||||
case PIPE_SHADER_CAP_INDIRECT_OUTPUT_ADDR:
|
||||
return 0;
|
||||
|
||||
|
@ -442,8 +438,6 @@ panfrost_is_format_supported( struct pipe_screen *screen,
|
|||
unsigned bind)
|
||||
{
|
||||
struct panfrost_device *dev = pan_device(screen);
|
||||
bool is_bifrost = (dev->quirks & IS_BIFROST);
|
||||
bool is_deqp = dev->debug & PAN_DBG_DEQP;
|
||||
const struct util_format_description *format_desc;
|
||||
|
||||
assert(target == PIPE_BUFFER ||
|
||||
|
@ -471,10 +465,6 @@ panfrost_is_format_supported( struct pipe_screen *screen,
|
|||
if (MAX2(sample_count, 1) != MAX2(storage_sample_count, 1))
|
||||
return false;
|
||||
|
||||
/* Don't advertise multisampling on Bifrost yet */
|
||||
if ((is_bifrost && !is_deqp) && sample_count > 1)
|
||||
return false;
|
||||
|
||||
/* Z16 causes dEQP failures on t720 */
|
||||
if (format == PIPE_FORMAT_Z16_UNORM && dev->quirks & MIDGARD_SFBD)
|
||||
return false;
|
||||
|
|
Loading…
Reference in New Issue