NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: "xv" video with intel graphics?



On Sun, 27 Sep 2020, John D. Baker wrote:

> Like the default [gpu], 'mpv' opens a window but does not paint it (shows
> snapshot of screen region behind window).  Does not play audio either.

For the (default) "vo=gpu" case, the backtrace is:

[...]
(gdb) bt
#0  gen4_update_renderbuffer_surface (surf_index=0, unit=0, rb=0x7adb9828c800, 
    brw=0x7adb97292570)
    at /x/netbsd-9/src/../xsrc/external/mit/MesaLib/dist/src/mesa/drivers/dri/i965/brw_wm_surface_state.c:942
#1  update_renderbuffer_surfaces (brw=0x7adb97292570)
    at /x/netbsd-9/src/../xsrc/external/mit/MesaLib/dist/src/mesa/drivers/dri/i965/brw_wm_surface_state.c:1013
#2  0x00007adb771e2e14 in check_and_emit_atom (atom=0x7adb972a9260, 
    state=<synthetic pointer>, brw=0x7adb97292570)
    at /x/netbsd-9/src/../xsrc/external/mit/MesaLib/dist/src/mesa/drivers/dri/i965/brw_state_upload.c:496
#3  brw_upload_pipeline_state (pipeline=BRW_RENDER_PIPELINE, 
    brw=0x7adb97292570)
    at /x/netbsd-9/src/../xsrc/external/mit/MesaLib/dist/src/mesa/drivers/dri/i965/brw_state_upload.c:615
#4  brw_upload_render_state (brw=brw@entry=0x7adb97292570)
    at /x/netbsd-9/src/../xsrc/external/mit/MesaLib/dist/src/mesa/drivers/dri/i965/brw_state_upload.c:637
#5  0x00007adb77025f23 in brw_draw_single_prim (indirect=0x0, stream=0, 
    xfb_obj=0x0, prim_id=0, prim=<optimized out>, ctx=0x7adb97292570)
    at /x/netbsd-9/src/../xsrc/external/mit/MesaLib/dist/src/mesa/drivers/dri/i965/brw_draw.c:987
#6  brw_draw_prims (ctx=0x7adb97292570, prims=<optimized out>, nr_prims=1, 
    ib=<optimized out>, index_bounds_valid=<optimized out>, 
    min_index=<optimized out>, max_index=<optimized out>, gl_xfb_obj=0x0, 
    stream=0, indirect=0x0)
    at /x/netbsd-9/src/../xsrc/external/mit/MesaLib/dist/src/mesa/drivers/dri/i965/brw_draw.c:1107
#7  0x00007adb773d90e7 in _mesa_draw_arrays (ctx=<optimized out>, 
    mode=<optimized out>, start=<optimized out>, count=<optimized out>, 
    numInstances=<optimized out>, baseInstance=<optimized out>, drawID=0)
    at /x/netbsd-9/src/../xsrc/external/mit/MesaLib/dist/src/mesa/main/draw.c:408
--Type <RET> for more, q to quit, c to continue without paging--c
#8  0x00007adb773d99ed in _mesa_exec_DrawArrays (mode=4, start=0, count=6) at /x/netbsd-9/src/../xsrc/external/mit/MesaLib/dist/src/mesa/main/draw.c:565
#9  0x00000000004cca38 in gl_vao_draw_data (vao=0x7adb97d5ac58, prim=4, ptr=<optimized out>, num=6) at ../video/out/opengl/utils.c:239
#10 0x00000000004cb098 in gl_renderpass_run (ra=0x7adb98331860, params=0x7adb787ed930) at ../video/out/opengl/ra_gl.c:1065
#11 0x00000000004b288c in gl_sc_dispatch_draw (sc=0x7adb98303e40, target=target@entry=0x7adb98295140, discard=discard@entry=false, vao=<optimized out>, vao_len=vao_len@entry=4, vertex_stride=vertex_stride@entry=32, vertices=<optimized out>, num_vertices=num_vertices@entry=6) at ../video/out/gpu/shader_cache.c:992
#12 0x00000000004b8eaa in render_pass_quad (dst=0x7adb96e5da60, discard=false, fbo=..., p=0x7adb96e5d000) at ../video/out/gpu/video.c:1265
#13 finish_pass_fbo (p=p@entry=0x7adb96e5d000, fbo=..., discard=discard@entry=false, dst=dst@entry=0x7adb96e5da60) at ../video/out/gpu/video.c:1273
#14 0x00000000004bbcda in pass_draw_to_screen (p=p@entry=0x7adb96e5d000, fbo=...) at ../video/out/gpu/video.c:3017
#15 0x00000000004bf5d7 in gl_video_render_frame (p=0x7adb96e5d000, frame=frame@entry=0x7adb982a2b40, fbo=..., flags=flags@entry=3) at ../video/out/gpu/video.c:3297
#16 0x00000000004d0a6c in draw_frame (vo=0x7adb9bb68540, frame=0x7adb982a2b40) at ../video/out/vo_gpu.c:87
#17 0x00000000004ce6ff in render_frame (vo=0x7adb9bb68540) at ../video/out/vo.c:906
#18 vo_thread (ptr=0x7adb9bb68540) at ../video/out/vo.c:1034
#19 0x00007adb9340c072 in pthread__create_tramp (cookie=0x7adb9baea000) at /x/netbsd-9/src/lib/libpthread/pthread.c:592
#20 0x00007adb91287b70 in ?? () from /usr/lib/libc.so.12
Backtrace stopped: Cannot access memory at address 0x7adb787f0000
(gdb) list gen4_update_renderbuffer_surface
923		 assert(irb->align_wa_mt);
924		 mt = irb->align_wa_mt;
925	      }
926	   }
927	
928	   surf = brw_state_batch(brw, 6 * 4, 32, &offset);
929	
930	   format = brw->mesa_to_isl_render_format[rb_format];
931	   if (unlikely(!brw->mesa_format_supports_render[rb_format])) {
932	      _mesa_problem(ctx, "%s: renderbuffer format %s unsupported\n",
(gdb) 
933	                    __func__, _mesa_get_format_name(rb_format));
934	   }
935	
936	   surf[0] = (BRW_SURFACE_2D << BRW_SURFACE_TYPE_SHIFT |
937		      format << BRW_SURFACE_FORMAT_SHIFT);
938	
939	   /* reloc */
940	   assert(mt->offset % mt->cpp == 0);
941	   surf[1] = brw_state_reloc(&brw->batch, offset + 4, mt->bo,
942	                             mt->offset +
(gdb) 
943	                             intel_renderbuffer_get_tile_offsets(irb,
944	                                                                 &tile_x,
945	                                                                 &tile_y),
946	                             RELOC_WRITE);
947	
948	   surf[2] = ((rb->Width - 1) << BRW_SURFACE_WIDTH_SHIFT |
949		      (rb->Height - 1) << BRW_SURFACE_HEIGHT_SHIFT);
950	
951	   surf[3] = (brw_get_surface_tiling_bits(mt->surf.tiling) |
952		      (mt->surf.row_pitch_B - 1) << BRW_SURFACE_PITCH_SHIFT);


PR?

-- 
|/"\ John D. Baker, KN5UKS               NetBSD     Darwin/MacOS X
|\ / jdbaker[snail]consolidated[flyspeck]net  OpenBSD            FreeBSD
| X  No HTML/proprietary data in email.   BSD just sits there and works!
|/ \ GPGkeyID:  D703 4A7E 479F 63F8 D3F4  BD99 9572 8F23 E4AD 1645


Home | Main Index | Thread Index | Old Index