Displaying 20 results from an estimated 400 matches similar to: "[PATCH] added comments"
2010 Jul 29
1
[PATCH] Reflow logic to make it easier to follow
The control flow was:
if (!y) {
ppix = ...
}
if (y) {
...
} else if (x) {
use ppix for something
} else {
use ppix for something
}
Merge the if(!y) block with the two else branches. This avoids
a false-positive in the clang static analyzer, it can't know that
!y and x are mutually exclusive.
The result looks something like this:
if (y) {
...
} else {
ppix = ...
if (x) {
2012 Jul 27
1
[PATCH] nvc0: Add and enable vblank support
Based on the original patch by Christoph Bumiller, but since
it depends on kernel support patched I cannot push it yet.
The changes are that I enable vblank by default, and offset
takes OFFSET_HIGH/LOW instead of something relative to notifier_bo.
Signed-off-by: Maarten Lankhorst <maarten.lankhorst at canonical.com>
---
diff --git a/man/nouveau.man b/man/nouveau.man
index 7c72907..8765569
2013 May 03
0
[PATCH] nouveau_xv: Avoid reading off the end of the source image on NV50+
The 'w' argument to NVCopyNV12ColorPlanes is used to index into the
source image. line_len is rounded up to 8 on NV50+, so if the source
image (+ left offset) is not rounded to 8, NVCopyNV12ColorPlanes could
read past the end of the array and crash X. This change can cause the
last few horizontal pixels of dst to not be initialized, but they
should be truncated by the renderer anyways.
2019 Jan 21
2
[PATCH xf86-video-nouveau 1/2] xv: Avoid shadowed declaration of 'int i' in NVPutImage
int i is accessed outside immediate scope so leave declaration at
the highest common scope level:
1073: int ret, i;
...
// Highest common scope
...
1193: if (newTTSize <= destination_buffer->size) {
...
// Used in this scope
...
1248: } else {
...
// Used in this scope
...
1316: }
2009 Jan 31
1
[Bug 19860] New: xv texture adaptor kills X
http://bugs.freedesktop.org/show_bug.cgi?id=19860
Summary: xv texture adaptor kills X
Product: xorg
Version: git
Platform: x86-64 (AMD64)
OS/Version: Linux (All)
Status: NEW
Severity: normal
Priority: medium
Component: Driver/nouveau
AssignedTo: nouveau at lists.freedesktop.org
ReportedBy:
2017 Apr 18
3
[PATCH xserver] Make PixmapDirtyUpdateRec::src a DrawablePtr
From: Michel Dänzer <michel.daenzer at amd.com>
This allows making the master screen's pixmap_dirty_list entries
explicitly reflect that we're now tracking the root window instead of
the screen pixmap, in order to allow Present page flipping on master
outputs while there are active slave outputs.
Define HAS_DIRTYTRACKING_DRAWABLE_SRC for drivers to check, but leave
2019 Jan 21
0
[PATCH xf86-video-nouveau 2/2] xv: Avoid shadowed declaration of 'int ret' in NVPutImage
Warning reported by gcc 8.2:
nouveau_xv.c: In function ‘NVPutImage’:
nouveau_xv.c:1369:7: warning: declaration of ‘ret’ shadows a previous local [-Wshadow]
int ret = BadImplementation;
^~~
nouveau_xv.c:1073:6: note: shadowed declaration is here
int ret, i;
^~~
Fixes: a50bba6 ("xv: misc cleanups")
Cc: Ben Skeggs <bskeggs at redhat.com>
Signed-off-by: Rhys Kidd
2015 Mar 21
0
[PATCH] use defined method names where available
Signed-off-by: Ilia Mirkin <imirkin at alum.mit.edu>
---
Would be nice if someone could glance at this... I suppose I could
also compare object files. Yeah, I should probably do that.
src/nv10_exa.c | 8 ++++----
src/nv30_exa.c | 20 ++++++++++----------
src/nv40_exa.c | 8 ++++----
src/nv50_accel.c | 6 +++---
src/nv50_accel.h | 1 +
src/nv50_exa.c
2013 Jul 22
0
[RFC PATCH] Support running nested in a Mir compositor
From: Christopher James Halse Rogers <raof at ubuntu.com>
Barring some (admittedly significant) missing optimisations? this is reasonably
complete, but can't be applied until the Xserver patch has landed,
and that needs more work.
This demonstrates the approach, however.
There's probably some code to be shared with XWayland support, around the
output handling (or lack thereof) and
2018 Jan 13
0
[PATCH] drmmode: update logic for dynamic connectors, paths, and tiles
This largely copies the code from modesetting with minor adjustments.
Signed-off-by: Ilia Mirkin <imirkin at alum.mit.edu>
---
I've tried privately to get people to test this out, but to no avail.
I don't have the hardware to verify this one way or the other. Ideally
with this patch you should be (a) able to use a tiled monitor at 60hz
with DP-MST and (b) be able to see connectors
2017 Apr 18
0
[PATCH xf86-video-amdgpu] Adapt to PixmapDirtyUpdateRec::src being a DrawablePtr
From: Michel Dänzer <michel.daenzer at amd.com>
Signed-off-by: Michel Dänzer <michel.daenzer at amd.com>
---
Chris / Ilia / Ben, this should be manageable for the intel/nouveau
drivers, right?
src/amdgpu_drv.h | 26 ++++++++++++++++++++++++++
src/amdgpu_kms.c | 18 +++++++++---------
src/drmmode_display.c | 8 ++++++--
3 files changed, 41 insertions(+), 11 deletions(-)
2018 Oct 09
0
[PATCH] drmmode: update logic for dynamic connectors, paths, and tiles
This largely copies the code from modesetting with minor adjustments.
Signed-off-by: Ilia Mirkin <imirkin at alum.mit.edu>
---
I've tested this back and forth with a GTX 960 + 2x U2415 monitors,
chained to each other. I turned them on/off. I messed with their DP
1.1/1.2 settings. I pulled plugs a few times.
This seems to pass the test. No crashes, the connectors seem to come
and go
2020 Apr 30
2
[PATCH] drm/nouveau/dispnv04: Remove dead code
These are dead code since 3.10. If there is no plan to use
it further, these can be removed forever.
Signed-off-by: Souptick Joarder <jrdr.linux at gmail.com>
---
drivers/gpu/drm/nouveau/dispnv04/crtc.c | 28 ----------------------------
1 file changed, 28 deletions(-)
diff --git a/drivers/gpu/drm/nouveau/dispnv04/crtc.c b/drivers/gpu/drm/nouveau/dispnv04/crtc.c
index 1f08de4..ad0ef7d
2012 Jul 04
0
[PATCH] Add xwayland support (v2)
v2: Fix build against Xservers without Wayland support
Don't try to acquire/drop drm master under Wayland
Refresh for xserver 1.13 kill-all-direct-access-to-xf86Screens
Remove #ifdef soup in favour of xwayland compat header
Signed-off-by: Christopher James Halse Rogers <christopher.halse.rogers at canonical.com>
---
configure.ac | 7 ++
src/Makefile.am |
2017 Mar 04
0
[DDX PATCH] Consider CRTCs disabled when DPMS is off
It turns out there's a difference in X between a CRTC being "disabled"
and simply having it's DPMS turned off. This is problematic though,
because if DPMS is turned off you can't really use the CRTC as a normal
CRTC anyway since page flipping and vblanks will be non-functional. As a
result, we've been considering DPMS-on CRTCs as enabled and attempt to
perform pageflips,
2020 Apr 30
0
[PATCH] drm/nouveau/dispnv04: Remove dead code
Interesting. I do remember seeing some snow on NV5's overlay at high
resolutions. Wonder if it was because of this missing code...
On Thu, Apr 30, 2020 at 4:19 PM Souptick Joarder <jrdr.linux at gmail.com> wrote:
>
> These are dead code since 3.10. If there is no plan to use
> it further, these can be removed forever.
>
> Signed-off-by: Souptick Joarder <jrdr.linux at
2015 Aug 06
0
[PATCH] Take shift in crtc positions for ZaphodHeads configs into account.
I don't understand this patch (what are all these masks? how are they
used?), and don't want to invest the time required to do so.
However Mario is probably the sole serious user of ZaphodHeads, and if
it fixes issues for him, probably fixes issues for others who try and
give up with ZaphodHeads. Any objections if I just push this out?
On Sat, Jun 27, 2015 at 8:33 PM, Mario Kleiner
2012 May 23
1
[PATCH (nouveau)] Add xwayland support
Signed-off-by: Christopher James Halse Rogers <christopher.halse.rogers at canonical.com>
---
This is mostly just for testing, although it should be safe to apply to nouveau
trunk.
src/nouveau_dri2.c | 34 +++++++++++
src/nv_driver.c | 163 +++++++++++++++++++++++++++++++++++++++++++++++-----
src/nv_type.h | 7 +++
3 files changed, 191 insertions(+), 13 deletions(-)
diff
2020 May 01
1
[PATCH] drm/nouveau/dispnv04: Remove dead code
On Fri, May 1, 2020 at 2:21 AM Ilia Mirkin <imirkin at alum.mit.edu> wrote:
>
> Interesting. I do remember seeing some snow on NV5's overlay at high
> resolutions. Wonder if it was because of this missing code...
What was the problem ? Does enabling this dead code will fix the problem ?
>
> On Thu, Apr 30, 2020 at 4:19 PM Souptick Joarder <jrdr.linux at gmail.com>
2009 Jun 10
0
[PATCH] Use nanosleep instead of usleep when waiting the hardware.
usleep() was being used without checking its return value. When the
server receives SIGALRM or SIGIO the waits are shortened and random
modesetting failures happen: Use nanosleep and loop around it until
the requested time has elapsed.
---
src/nouveau_hw.c | 2 +-
src/nouveau_local.h | 6 ++++++
src/nv_bios.c | 2 +-
src/nv_crtc.c | 2 +-
src/nv_include.h | 1 +