[Bug 71759] Intel driver fails with "intel_do_flush_locked failed: No such file or directory" if buffer imported with EGL_NATIVE_PIXMAP_KHR

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Sun Feb 28 11:41:12 UTC 2016


https://bugs.freedesktop.org/show_bug.cgi?id=71759

--- Comment #15 from Fabrice Bellet <fabrice at bellet.info> ---
The missed relocation comes from there in userspace:

(gdb) bt
#0  0x00007fffe382e759 in do_bo_emit_reloc (bo=0x555555bfd570, offset=32356,
target_bo=0x555555bfeaf0, target_offset=0, read_domains=4, write_domain=0,
need_fence=false) at intel_bufmgr_gem.c:1968
#1  0x00007fffe382ea31 in drm_intel_gem_bo_emit_reloc (bo=0x555555bfd570,
offset=<optimized out>, target_bo=0x555555bfeaf0, target_offset=<optimized
out>, read_domains=<optimized out>, write_domain=<optimized out>) at
intel_bufmgr_gem.c:2066
#2  0x00007fffe3829f65 in drm_intel_bo_emit_reloc (bo=<optimized out>,
offset=<optimized out>, target_bo=<optimized out>, target_offset=<optimized
out>, read_domains=<optimized out>, write_domain=<optimized out>) at
intel_bufmgr.c:205
#3  0x00007fffe414923d in brw_update_texture_surface (ctx=0x555555b96b98,
unit=0, surf_offset=0x555555bbc440, for_gather=false)    at
brw_wm_surface_state.c:388
#4  0x00007fffe4149db1 in update_stage_texture_surfaces (brw=0x555555b96b98,
prog=0x555555f39850, stage_state=0x555555bbc410, for_gather=false) at
brw_wm_surface_state.c:849
#5  0x00007fffe4149ebd in brw_update_texture_surfaces (brw=0x555555b96b98) at
brw_wm_surface_state.c:880
#6  0x00007fffe413fd7f in check_and_emit_atom (brw=0x555555b96b98,
state=0x7fffffffd030, atom=0x555555bbcb90) at brw_state_upload.c:771
#7  0x00007fffe414021d in brw_upload_pipeline_state (brw=0x555555b96b98,
pipeline=BRW_RENDER_PIPELINE) at brw_state_upload.c:865
#8  0x00007fffe414038d in brw_upload_render_state (brw=0x555555b96b98) at
brw_state_upload.c:904
#9  0x00007fffe4120f61 in brw_try_draw_prims (ctx=0x555555b96b98,
arrays=0x555555bf4b90, prims=0x555555bf2d78, nr_prims=1, ib=0x0, min_index=0,  
 max_index=3, indirect=0x0) at brw_draw.c:560
#10 0x00007fffe4121384 in brw_draw_prims (ctx=0x555555b96b98,
prims=0x555555bf2d78, nr_prims=1, ib=0x0, index_bounds_valid=1 '\001',
min_index=0, max_index=3, unused_tfb_object=0x0, stream=0, indirect=0x0) at
brw_draw.c:650
#11 0x00007fffe3ece0f5 in vbo_exec_vtx_flush (exec=0x555555bf2598,
keepUnmapped=1 '\001') at vbo/vbo_exec_draw.c:422
#12 0x00007fffe3ec6c6a in vbo_exec_FlushVertices_internal (exec=0x555555bf2598,
unmap=1 '\001') at vbo/vbo_exec_api.c:624
#13 0x00007fffe3ec86d4 in vbo_exec_FlushVertices (ctx=0x555555b96b98, flags=1)
at vbo/vbo_exec_api.c:1261
#14 0x00007fffe3d3ea21 in enable_texture (ctx=0x555555b96b98, state=0 '\000',
texBit=1024) at main/enable.c:228
#15 0x00007fffe3d407a7 in _mesa_set_enable (ctx=0x555555b96b98,    cap=3553,
state=0 '\000') at main/enable.c:683
#16 0x00007fffe3d4198b in _mesa_Disable (cap=3553) at main/enable.c:1048
#17 0x00007fffc470f326 in gl_unbind_texture (ts=0x555555e632f0)    at
gstvaapiutils_glx.c:569
#18 0x00007fffc4710075 in gl_unbind_pixmap_object (pixo=0x555555e632e0) at
gstvaapiutils_glx.c:990
#19 0x00007fffc470d98e in gst_vaapi_texture_glx_put_surface_unlocked
(base_texture=0x5555559cf850, surface=0x7fffcc067450, crop_rect=0x7fffffffd420,
flags=0) at gstvaapitexture_glx.c:391
#20 0x00007fffc470da85 in gst_vaapi_texture_glx_put_surface
(texture=0x5555559cf850, surface=0x7fffcc067450, crop_rect=0x7fffffffd420,
flags=0)    at gstvaapitexture_glx.c:413
#21 0x00007fffc4f6206d in gst_vaapi_texture_put_surface   
(texture=0x5555559cf850, surface=0x7fffcc067450, crop_rect=0x7fffffffd420,
flags=0) at gstvaapitexture.c:373
#22 0x00007fffc5226179 in gst_vaapi_texture_upload (meta=0x7fffbc006978,
texture_id=0x7fffffffd4d0) at gstvaapivideometa_texture.c:200
#23 0x00007fffee3f74af in clutter_gst_gl_texture_upload_upload
(sink=0x555555b7f8b0 [ClutterGstVideoSink], buffer=0x7fffd8047460) at
./clutter-gst-video-sink.c:1542
#24 0x00007fffee3f5d76 in clutter_gst_source_dispatch (source=0x555555b81f70,
callback=0x0, user_data=0x0) at ./clutter-gst-video-sink.c:627
#25 0x00007ffff7376e3a in g_main_context_dispatch (context=0x5555559bf880) at
gmain.c:3154
#26 0x00007ffff7376e3a in g_main_context_dispatch
(context=context at entry=0x5555559bf880) at gmain.c:3769
#27 0x00007ffff73771d0 in g_main_context_iterate (context=0x5555559bf880,
block=block at entry=1, dispatch=dispatch at entry=1, self=<optimized out>) at
gmain.c:3840
#28 0x00007ffff73774f2 in g_main_loop_run (loop=0x555555b84470) at gmain.c:4034
#29 0x00007ffff7afbf79 in gst_bus_poll (bus=0x55555578b3e0 [GstBus],
events=<optimized out>, timeout=18446744073709551615) at gstbus.c:1153
#30 0x00005555555588b8 in event_loop (pipeline=0x555555b821f0 [GstPipeline],
blocking=1, do_progress=1,    target_state=GST_STATE_PAUSED) at
gst-launch.c:532
#31 0x0000555555557812 in main (argc=7, argv=0x7fffffffdb78) at
gst-launch.c:1072

(gdb) print ((drm_intel_bo_gem *)brw->batch.bo)->name
$50 = 0x7fffe434165c "batchbuffer"
(gdb) print ((drm_intel_bo_gem *)brw->batch.bo)->gem_handle
$51 = 22
(gdb) print ((drm_intel_bo_gem *)mt->bo)->name 
$52 = 0x7fffe383ca93 "prime"
(gdb) print ((drm_intel_bo_gem *)mt->bo)->gem_handle
$53 = 1

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/intel-3d-bugs/attachments/20160228/7468774e/attachment.html>


More information about the intel-3d-bugs mailing list