Skip to contentSkip to conversation

New: TvTime shows only the upper left corner (~ 1280x1024) in Randr1.2

Bug 12825 [email protected] 1 participant 23 messages Oct 16, 2007 – Apr 30, 2008 1 message not in the archive

lore
Share & tools
lore
#0 lore raw

http://bugs.freedesktop.org/show_bug.cgi?id=12825

           Summary: TvTime shows only the upper left corner (~ 1280x1024) in
                    Randr1.2
           Product: xorg
           Version: unspecified
          Platform: x86 (IA32)
        OS/Version: Linux (All)
            Status: NEW
          Severity: normal
          Priority: medium
         Component: Driver/nouveau
        AssignedTo: [email protected]
        ReportedBy: [email protected]
         QAContact: [email protected]

At higher resolutions greater than 1280x1024 TvTime only shows the top left, it seems to 1280x1024, the rest is blue. If I see Tvtime in small window in the upper left is well, if I put the window in the lower right corner is all blue.

The gdm starts with a resolution of 1280x1024, with nv boots to the maximum resolution of monitor, 2048x1536.

The screen displayed a line of vertical pixel roses on the right side and a more thin at the bottom.

Tvtime does not show any error.

Signature · 3 lines
Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

A message that is not in the archive (sent off-list or not yet received): bug-12825-8800-V0hAGp6uBxMKqLRl/[email protected]/

#2 lore raw

[Bug 12825] TvTime shows only the upper left corner (~ 1280x1024) in Randr1.2

http://bugs.freedesktop.org/show_bug.cgi?id=12825

------- Comment #1 from [email protected] 2007-10-16 07:01 PST ------- Created an attachment (id=12070)
--> (http://bugs.freedesktop.org/attachment.cgi?id=12070&action=view)
log tvtime -v

Signature · 3 lines
Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
#3 lore raw

[Bug 12825] TvTime shows only the upper left corner (~ 1280x1024) in Randr1.2

In reply to a message not in the archive

http://bugs.freedesktop.org/show_bug.cgi?id=12825

------- Comment #2 from [email protected] 2007-10-16 07:04 PST ------- Created an attachment (id=12071)
--> (http://bugs.freedesktop.org/attachment.cgi?id=12071&action=view)
log Xorg

Signature · 3 lines
Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
#4 lore raw

[Bug 12825] TvTime shows only the upper left corner (~ 1280x1024) in Randr1.2

In reply to a message not in the archive

http://bugs.freedesktop.org/show_bug.cgi?id=12825

------- Comment #3 from [email protected] 2007-10-16 07:06 PST ------- Created an attachment (id=12072)
--> (http://bugs.freedesktop.org/attachment.cgi?id=12072&action=view)
dmesg

Signature · 3 lines
Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
#5 lore raw

[Bug 12825] TvTime shows only the upper left corner (~ 1280x1024) in Randr1.2

In reply to a message not in the archive

http://bugs.freedesktop.org/show_bug.cgi?id=12825

------- Comment #4 from [email protected] 2007-10-16 07:09 PST ------- Created an attachment (id=12073)
--> (http://bugs.freedesktop.org/attachment.cgi?id=12073&action=view)
xorg.conf

Signature · 3 lines
Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
#6 lore raw

[Bug 12825] TvTime shows only the upper left corner (~ 1280x1024) in Randr1 .2

In reply to a message not in the archive

http://bugs.freedesktop.org/show_bug.cgi?id=12825

Maarten Maathuis <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |[email protected]

--- Comment #5 from Maarten Maathuis <[email protected]> 2008-01-17 06:12:19 PST --- Is this still an issue?

Signature · 3 lines
Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#7 lore raw

[Bug 12825] TvTime shows only the upper left corner (~ 1280x1024) in Randr1 .2

In reply to a message not in the archive

http://bugs.freedesktop.org/show_bug.cgi?id=12825

--- Comment #6 from David <[email protected]> 2008-01-19 13:09:13 PST --- Created an attachment (id=13801)
--> (http://bugs.freedesktop.org/attachment.cgi?id=13801)
log xorg

Signature · 3 lines
Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#8 lore raw

[Bug 12825] TvTime shows only the upper left corner (~ 1280x1024) in Randr1 .2

In reply to a message not in the archive

http://bugs.freedesktop.org/show_bug.cgi?id=12825

--- Comment #7 from David <[email protected]> 2008-01-19 13:11:12 PST --- Tvtime has not changed.
The pink lines has disappeared.

Signature · 3 lines
Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#9 lore raw

[Bug 12825] TvTime shows only the upper left corner (~ 1280x1024) in Randr1 .2

In reply to a message not in the archive

http://bugs.freedesktop.org/show_bug.cgi?id=12825

--- Comment #8 from Maarten Maathuis <[email protected]> 2008-01-19 13:34:49 PST --- Does this happen with mplayer also?

Signature · 3 lines
Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#10 lore raw

[Bug 12825] TvTime shows only the upper left corner (~ 1280x1024) in Randr1 .2

In reply to a message not in the archive

http://bugs.freedesktop.org/show_bug.cgi?id=12825

--- Comment #9 from David <[email protected]> 2008-01-19 13:53:08 PST --- This also does happen with mplayer, output xv.

Signature · 3 lines
Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#11 lore raw

[Bug 12825] TvTime shows only the upper left corner (~ 1280x1024) in Randr1 .2

In reply to a message not in the archive

http://bugs.freedesktop.org/show_bug.cgi?id=12825

--- Comment #10 from Maarten Maathuis <[email protected]> 2008-02-01 11:42:16 PST --- I think something related got fixed, is this still an issue?

Signature · 3 lines
Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#12 lore raw

[Bug 12825] TvTime shows only the upper left corner (~ 1280x1024) in Randr1 .2

In reply to a message not in the archive

http://bugs.freedesktop.org/show_bug.cgi?id=12825

--- Comment #11 from David <[email protected]> 2008-02-03 10:34:10 PST --- Still the same thing happening with tvtime and mplayer.
Also still booting gdm to 1280x1024 Is this normal?

Signature · 3 lines
Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#13 lore raw

[Bug 12825] TvTime shows only the upper left corner (~ 1280x1024) in Randr1 .2

In reply to a message not in the archive

http://bugs.freedesktop.org/show_bug.cgi?id=12825

--- Comment #12 from David <[email protected]> 2008-02-03 10:35:08 PST --- Created an attachment (id=14124)
--> (http://bugs.freedesktop.org/attachment.cgi?id=14124)
xorg log

Signature · 3 lines
Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#14 lore raw

[Bug 12825] TvTime shows only the upper left corner (~ 1280x1024) in Randr1 .2

In reply to a message not in the archive

http://bugs.freedesktop.org/show_bug.cgi?id=12825

--- Comment #13 from Maarten Maathuis <[email protected]> 2008-02-03 10:43:40 PST --- It's not the driver's choice what resolution to run, gdm has been known to
prefer different resolutions, don't ask me why.

You are able to increase to maximum resolution?

Signature · 3 lines
Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#15 lore raw

[Bug 12825] TvTime shows only the upper left corner (~ 1280x1024) in Randr1 .2

In reply to a message not in the archive

http://bugs.freedesktop.org/show_bug.cgi?id=12825

--- Comment #14 from Maarten Maathuis <[email protected]> 2008-02-03 10:49:28 PST --- Does the blitter adapter work? (check xvinfo for the adapter number)

Does this also occur without randr12 enabled?

Signature · 3 lines
Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#16 lore raw

[Bug 12825] TvTime shows only the upper left corner (~ 1280x1024) in Randr1 .2

In reply to a message not in the archive

http://bugs.freedesktop.org/show_bug.cgi?id=12825

--- Comment #15 from David <[email protected]> 2008-02-03 12:04:11 PST --- I can put maximum resolution of 2048x1536 with and without RandR12.

I made the following testing with "mplayer -vo xv:port=XXX"

"NV Video Overlay" without RandR12 OK
"NV Video Blitter" without RandR12 OK
"NV Video Overlay" RandR12 only upper left corner. "NV Video Blitter" RandR12 OK

Xvinfo with and without RandR12 only change port 105,106 to 134,135.

Signature · 3 lines
Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#17 lore raw

[Bug 12825] TvTime shows only the upper left corner (~ 1280x1024) in Randr1 .2

In reply to a message not in the archive

http://bugs.freedesktop.org/show_bug.cgi?id=12825

Maarten Maathuis <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

             Blocks|                            |14405
Signature · 3 lines
Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#18 lore raw

[Bug 12825] TvTime shows only the upper left corner (~ 1280x1024) in Randr1 .2

In reply to a message not in the archive

http://bugs.freedesktop.org/show_bug.cgi?id=12825

--- Comment #16 from Stuart Bennett <sb476-KWPb1pKIrIJaa/[email protected]> 2008-03-15 13:15:18 PST --- If you remove the TV capture card from the computer does it work?

Signature · 3 lines
Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#19 lore raw

[Bug 12825] TvTime shows only the upper left corner (~ 1280x1024) in Randr1 .2

In reply to a message not in the archive

http://bugs.freedesktop.org/show_bug.cgi?id=12825

--- Comment #17 from David <[email protected]> 2008-03-16 08:37:31 PST --- I removed the TV card from the computer and continues as before.

Signature · 3 lines
Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#20 lore raw

[Bug 12825] TvTime shows only the upper left corner (~ 1280x1024) in Randr1 .2

In reply to a message not in the archive

http://bugs.freedesktop.org/show_bug.cgi?id=12825

--- Comment #18 from Stuart Bennett <sb476-KWPb1pKIrIJaa/[email protected]> 2008-03-16 12:08:05 PST --- I've tracked this down, and found two(ish) fixes.

The problem is that currently the video overlay gets clipped to the screen viewport in xf86XVClipVideoHelper(), the viewport having been determined (as "clipBoxes" in DDX parlance) by xf86XVPutStill in the xserver before calling back into NVPutImage and then NV_set_dimensions where xf86XVClipVideoHelper is called. This would all be fine except that xf86XVPutStill uses pScrn->frameX1 and pScrn->frameY1 which are wrong (they don't map well to the randr12 world-view). I'd argue therefore for this being an xserver issue.

Unfortunately fixes to the xserver take time, so a driver work-around is required:
1a) do something like
pScrn->frameX1 = xf86_config->crtc[pPriv->overlayCRTC]->x + xf86_config->crtc[pPriv->overlayCRTC]->mode.HDisplay - 1;
(and similarly for frameY1) when the overlay CRTC is known, to provide a sensible value for clipping
1b) do something like pScrn->frameX1 = pScrn->virtualX - 1; (and similarly for frameY1) to provide a sensible (if large) value for clipping
2) remove the flag VIDEO_CLIP_TO_VIEWPORT from nv_video.c to remove the clipping altogether. Depending how the rest of the code works, this could be a bad move due to excessive bandwidth usage and very-very-large frames being larger than the overlay can handle

(an xserver bug ought to be filed once a suitable resolution is found)

Signature · 3 lines
Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#21 lore raw

[Bug 12825] TvTime shows only the upper left corner (~ 1280x1024) in Randr1 .2

In reply to a message not in the archive

http://bugs.freedesktop.org/show_bug.cgi?id=12825

--- Comment #19 from Stuart Bennett <sb476-KWPb1pKIrIJaa/[email protected]> 2008-04-28 09:12:20 PST --- Created an attachment (id=16218)
--> (http://bugs.freedesktop.org/attachment.cgi?id=16218)
A possible fix

This replaces the clipping done in the xserver by doing it in the driver. Obviously, dropping VIDEO_CLIP_TO_VIEWPORT altogether (it's already not used in the blitter or texture adapters) would be even simpler...

Signature · 3 lines
Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#22 lore raw

[Bug 12825] TvTime shows only the upper left corner (~ 1280x1024) in Randr1 .2

In reply to a message not in the archive

http://bugs.freedesktop.org/show_bug.cgi?id=12825

--- Comment #20 from David <[email protected]> 2008-04-28 10:10:41 PST --- The patch works correctly in my case.

I have other problems that I have to see if they are reported or not yet, but I have noticed that are not caused by this patch.

Thank you.

Signature · 3 lines
Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#23 lore raw

[Bug 12825] TvTime shows only the upper left corner (~ 1280x1024) in Randr1 .2

In reply to a message not in the archive

http://bugs.freedesktop.org/show_bug.cgi?id=12825

Stuart Bennett <sb476-KWPb1pKIrIJaa/[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED

--- Comment #21 from Stuart Bennett <sb476-KWPb1pKIrIJaa/[email protected]> 2008-04-29 17:12:46 PST --- Patch applied

Signature · 3 lines
Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.