<br><div class="gmail_quote">2012/6/7 Andy Furniss <span dir="ltr">&lt;<a href="mailto:andyqos@ukfsn.org" target="_blank">andyqos@ukfsn.org</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div class="HOEnZb"><div class="h5">Andy Furniss wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Andy Furniss wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Christian König wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
When the video buffer turns out to be larger than<br>
requested by the application we shouldn&#39;t upload<br>
or download more data into / from it original requested.<br>
<br>
Fixes: <a href="https://bugs.freedesktop.org/show_bug.cgi?id=39309" target="_blank">https://bugs.freedesktop.org/<u></u>show_bug.cgi?id=39309</a><br>
</blockquote>
<br>
Hi<br>
<br>
It doesn&#39;t fix decoding (for my 9600) - which that bug is mainly about.<br>
<br>
It does avoid the crashing with s/w decode that r300 had because npot<br>
wasn&#39;t enabled and the one case I found that mplayer would crash on r600<br>
mentioned in the bug is also fixed.<br>
<br>
Unfortunately it&#39;s not quite right, there&#39;s an artifact on r300 s/w<br>
decode = thin green lines right and bottom.<br>
R600 with the patch doesn&#39;t show it as much, but 1080 stuff does have<br>
one at the bottom.<br>
</blockquote>
<br>
Playing some more - enabling npot for r300 will make it the same as r600<br>
with the patch.<br>
<br>
Never tried 422 -vo on r300 before, but it fails whatever combination of<br>
npot/patch is used -<br>
<br>
VO: [vdpau] 704x576 =&gt; 704x576 Packed YUY2<br>
r300: Ooops. Got unsupported format r8g8_r8b8_unorm in<br>
r300_create_sampler_view_<u></u>custom.<br>
r300_state.c:1497:r300_create_<u></u>sampler_view_custom: Assertion `hwformat<br>
!= ~0&#39; failed.<br>
Trace/breakpoint trap<br>
<br>
The next test may be a regression but I can&#39;t be sure - just would be<br>
surprised if I didn&#39;t test HD decode as well as SD in the past.<br>
<br>
Anyway this is with or without patch. SD decode as before renders junk,<br>
but HD is now throwing errors.<br>
<br>
r300: Implementation error: Render targets are too big in<br>
r300_set_framebuffer_state, refusing to bind framebuffer state!<br>
radeon: The kernel rejected CS, see dmesg for more information.<br>
Then lots of -<br>
r300: Implementation error: Render targets are too big in<br>
r300_set_framebuffer_state, refusing to bind framebuffer state!<br>
<br>
from dmesg -<br>
<br>
[drm] Initialized radeon 2.15.0 20080528 for 0000:02:00.0 on minor 0<br>
[drm:r100_cs_track_check] *ERROR* [drm] No buffer for z buffer !<br>
[drm:radeon_cs_ib_chunk] *ERROR* Invalid command stream !<br>
<br>
If I enable npot -<br>
<br>
diff --git a/src/gallium/drivers/r300/<u></u>r300_screen.c<br>
b/src/gallium/drivers/r300/<u></u>r300_screen.c<br>
index da47fa2..758c690 100644<br>
--- a/src/gallium/drivers/r300/<u></u>r300_screen.c<br>
+++ b/src/gallium/drivers/r300/<u></u>r300_screen.c<br>
@@ -325,7 +325,7 @@ static int r300_get_video_param(struct pipe_screen<br>
*screen,<br>
        case PIPE_VIDEO_CAP_SUPPORTED:<br>
           return vl_profile_supported(screen, profile);<br>
        case PIPE_VIDEO_CAP_NPOT_TEXTURES:<br>
-         return 0;<br>
+         return 1;<br>
        case PIPE_VIDEO_CAP_MAX_WIDTH:<br>
        case PIPE_VIDEO_CAP_MAX_HEIGHT:<br>
           return vl_video_buffer_max_size(<u></u>screen);<br>
<br>
Then the errors go away (it still renders junk).<br>
</blockquote>
<br></div></div>
I don&#39;t know how Christian handles his mail, but Vodafone are blocking my ISP&#39;s SMTP address, so this is just going to the list - unless someone else can reply all.</blockquote><div><br></div><div>Replied all, I hope it helps.</div>

<div>Emeric</div><div><br></div></div>