[Mesa-dev] freedreno: 'Unhandled NIR tex src type: 11' on A3XX
Rob Clark
robdclark at gmail.com
Mon Jun 10 13:58:30 UTC 2019
On Mon, Jun 10, 2019 at 6:53 AM Rob Clark <robdclark at gmail.com> wrote:
>
> On Sat, Jun 8, 2019 at 6:08 PM Brian Masney <masneyb at onstation.org> wrote:
> >
> > Hi,
> >
> > I'm trying to get the GPU working using the Freedreno driver (A330) on
> > the Nexus 5 phone. I'm using kernel 5.2rc3 with some out of tree patches
> > related to the GPU [1] and mesa 19.1.0-rc5 on postmarketOS. When I run
> > glxgears, I see the gears show up for a fraction of a second and then
> > it terminates due to the following error:
> >
> > -----
> > shader: MESA_SHADER_FRAGMENT
> > inputs: 1
> > outputs: 1
> > uniforms: 0
> > shared: 0
> > decl_var uniform INTERP_MODE_NONE sampler2D sampler (0, 0, 0)
> > decl_var shader_in INTERP_MODE_SMOOTH vec4 in_0 (VARYING_SLOT_VAR0, 0, 0)
> > decl_var shader_out INTERP_MODE_FLAT vec4 out_0 (FRAG_RESULT_DATA0, 0, 0)
> > decl_function main (0 params)
> >
> > impl main {
> > block block_0:
> > /* preds: */
> > vec1 32 ssa_0 = load_const (0x00000000 /* 0.000000 */)
> > vec2 32 ssa_1 = intrinsic load_barycentric_pixel () (1) /* interp_mode=1 */
> > vec4 32 ssa_2 = intrinsic load_interpolated_input (ssa_1, ssa_0) (0, 0) /* base=0 */ /* component=0 */ /* in_0 */
> > vec1 32 ssa_3 = deref_var &sampler (uniform sampler2D)
> > vec2 32 ssa_4 = vec2 ssa_2.x, ssa_2.y
> > vec4 32 ssa_5 = tex ssa_3 (texture_deref), ssa_3 (sampler_deref), ssa_4 (coord)
> > Unhandled NIR tex src type: 11
>
> This should be getting lowered somewhere.. and I don't *think* it
> should be a3xx specific.
It should be getting lowered in gl_nir_lower_samplers().. which should
be called from mesa/st before the driver even sees this shader.
Could you build mesa from git w/ latest 19.1, I guess this must have
been fixed by now, since other drivers that use nir would hit the same
issue.
BR,
-R
>
> btw, I am testing on x11 fairly regularly.. but mostly w/ a5xx and
> a6xx these days, and with mesa master.
>
> BR,
> -R
>
> >
> >
> > intrinsic store_output (ssa_5, ssa_0) (0, 15, 0) /* base=0 */ /* wrmask=xyzw */ /* component=0 */ /* out_0 */
> > /* succs: block_1 */
> > block block_1:
> > }
> >
> > Assertion failed: !"" (../src/freedreno/ir3/ir3_context.c: ir3_context_error: 407)
> > -----
> >
> > I verified that the mesa 19.1.0-rc5 release contains this recent a3xx
> > fix from Jonathan:
> > https://gitlab.freedesktop.org/mesa/mesa/commit/1db86d8b62860380c34af77ae62b019ed2376443
> >
> > Any suggestions?
> >
> > [1] https://github.com/masneyb/linux/commits/v5.2-rc3-nexus5-gpu-wip
> > The GPU specific patches start at Rob's patch 'qcom-scm: add support
> > to restore secure config' on that list. I submitted the patches
> > below that a few weeks ago to the upstream kernel and I expect
> > they'll be merged. Once I have a working GPU, I plan to start
> > working on the interconnect support in the kernel for msm8974 so
> > that the clock hacks can be dropped.
> >
> > Brian
More information about the mesa-dev
mailing list