Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
xserver
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Marco Trevisan
xserver
Commits
f4bcd36a
Commit
f4bcd36a
authored
Oct 15, 2003
by
Anders Carlsson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add a memory_base variable and use it.
parent
f5916edb
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
11 additions
and
12 deletions
+11
-12
hw/kdrive/mach64/mach64.c
hw/kdrive/mach64/mach64.c
+1
-1
hw/kdrive/mach64/mach64.h
hw/kdrive/mach64/mach64.h
+0
-1
hw/kdrive/mach64/mach64draw.c
hw/kdrive/mach64/mach64draw.c
+2
-2
hw/kdrive/mga/mga.c
hw/kdrive/mga/mga.c
+2
-2
hw/kdrive/mga/mga.h
hw/kdrive/mga/mga.h
+0
-1
hw/kdrive/mga/mgadraw.c
hw/kdrive/mga/mgadraw.c
+3
-3
hw/kdrive/src/kaa.c
hw/kdrive/src/kaa.c
+2
-2
hw/kdrive/src/kdrive.h
hw/kdrive/src/kdrive.h
+1
-0
No files found.
hw/kdrive/mach64/mach64.c
View file @
f4bcd36a
...
...
@@ -70,7 +70,7 @@ mach64ScreenInit (KdScreenInfo *screen)
screen
->
dumb
=
TRUE
;
if
(
mach64s
->
vesa
.
mapping
!=
VESA_LINEAR
)
screen
->
dumb
=
TRUE
;
mach64s
->
screen
=
mach64s
->
vesa
.
fb
;
screen
->
memory_base
=
mach64s
->
vesa
.
fb
;
switch
(
screen
->
fb
[
0
].
depth
)
{
case
8
:
mach64s
->
colorKey
=
0xff
;
...
...
hw/kdrive/mach64/mach64.h
View file @
f4bcd36a
...
...
@@ -560,7 +560,6 @@ Bool mach64InitVideo(ScreenPtr pScreen);
typedef
struct
_mach64ScreenInfo
{
VesaScreenPrivRec
vesa
;
CARD8
*
screen
;
CARD32
DP_PIX_WIDTH
;
CARD32
DP_SET_GUI_ENGINE
;
Bool
bpp24
;
...
...
hw/kdrive/mach64/mach64draw.c
View file @
f4bcd36a
...
...
@@ -116,7 +116,7 @@ mach64Setup (PixmapPtr pDst, PixmapPtr pSrc, CARD32 combo, int wait)
if
(
triple
)
DST_PITCH
*=
3
;
/* bytes / 8 */
DST_OFFSET
=
((
CARD8
*
)
pDst
->
devPrivate
.
ptr
-
mach64s
->
screen
)
>>
3
;
DST_OFFSET
=
((
CARD8
*
)
pDst
->
devPrivate
.
ptr
-
pScreenPriv
->
screen
->
memory_base
)
>>
3
;
mach64WaitAvail
(
reg
,
wait
+
(
pSrc
?
5
:
4
));
reg
->
DP_SET_GUI_ENGINE
=
mach64s
->
DP_SET_GUI_ENGINE
|
(
combo
<<
20
);
...
...
@@ -131,7 +131,7 @@ mach64Setup (PixmapPtr pDst, PixmapPtr pSrc, CARD32 combo, int wait)
if
(
triple
)
SRC_PITCH
*=
3
;
/* bytes / 8 */
SRC_OFFSET
=
((
CARD8
*
)
pSrc
->
devPrivate
.
ptr
-
mach64s
->
screen
)
>>
3
;
SRC_OFFSET
=
((
CARD8
*
)
pSrc
->
devPrivate
.
ptr
-
pScreenPriv
->
screen
->
memory_base
)
>>
3
;
reg
->
SRC_OFF_PITCH
=
((
SRC_OFFSET
<<
0
)
|
(
SRC_PITCH
<<
22
)
|
...
...
hw/kdrive/mga/mga.c
View file @
f4bcd36a
...
...
@@ -74,8 +74,8 @@ mgaScreenInit (KdScreenInfo *screen)
screen->dumb = TRUE;
fprintf (stderr, "vesa mapping is %d\n", mgas->vesa.mapping);
#endif
mgas
->
screen
=
mgas
->
vesa
.
fb
;
#endif
screen
->
memory_base
=
mgas
->
vesa
.
fb
;
memory
=
mgas
->
vesa
.
fb_size
;
screen_size
=
screen
->
fb
[
0
].
byteStride
*
screen
->
height
;
...
...
hw/kdrive/mga/mga.h
View file @
f4bcd36a
...
...
@@ -96,7 +96,6 @@ typedef struct _mgaCardInfo {
typedef
struct
_mgaScreenInfo
{
VesaScreenPrivRec
vesa
;
CARD8
*
screen
;
int
pitch
;
int
pw
;
...
...
hw/kdrive/mga/mgadraw.c
View file @
f4bcd36a
...
...
@@ -102,7 +102,7 @@ mgaPrepareSolid (PixmapPtr pPixmap, int alu, Pixel pm, Pixel fg)
cmd
=
MGA_OPCOD_TRAP
|
MGA_DWGCTL_SOLID
|
MGA_DWGCTL_ARZERO
|
MGA_DWGCTL_SGNZERO
|
MGA_DWGCTL_SHIFTZERO
|
mgaRop
[
alu
];
dst_org
=
(
int
)
pPixmap
->
devPrivate
.
ptr
-
(
int
)
mgas
->
screen
;
dst_org
=
(
int
)
pPixmap
->
devPrivate
.
ptr
-
(
int
)
pScreenPriv
->
screen
->
memory_base
;
mgaSetup
(
pPixmap
->
drawable
.
pScreen
,
5
);
...
...
@@ -152,8 +152,8 @@ mgaPrepareCopy (PixmapPtr pSrcPixmap, PixmapPtr pDstPixmap,
mgaSetup
(
pSrcPixmap
->
drawable
.
pScreen
,
7
);
MGA_OUT32
(
mmio
,
MGA_REG_SRCORG
,
((
int
)
pSrcPixmap
->
devPrivate
.
ptr
-
(
int
)
mgas
->
screen
));
MGA_OUT32
(
mmio
,
MGA_REG_DSTORG
,
((
int
)
pDstPixmap
->
devPrivate
.
ptr
-
(
int
)
mgas
->
screen
));
MGA_OUT32
(
mmio
,
MGA_REG_SRCORG
,
((
int
)
pSrcPixmap
->
devPrivate
.
ptr
-
(
int
)
pScreenPriv
->
screen
->
memory_base
));
MGA_OUT32
(
mmio
,
MGA_REG_DSTORG
,
((
int
)
pDstPixmap
->
devPrivate
.
ptr
-
(
int
)
pScreenPriv
->
screen
->
memory_base
));
MGA_OUT32
(
mmio
,
MGA_REG_PITCH
,
pDstPixmap
->
devKind
/
(
pDstPixmap
->
drawable
.
bitsPerPixel
>>
3
));
src_pitch
=
pSrcPixmap
->
devKind
/
(
pSrcPixmap
->
drawable
.
bitsPerPixel
>>
3
);
...
...
hw/kdrive/src/kaa.c
View file @
f4bcd36a
...
...
@@ -135,11 +135,11 @@ kaaPixmapAllocArea (PixmapPtr pPixmap)
ScreenPtr
pScreen
=
pPixmap
->
drawable
.
pScreen
;
KaaScreenPriv
(
pScreen
);
KaaPixmapPriv
(
pPixmap
);
KdScreenPriv
(
pScreen
);
int
bpp
=
pPixmap
->
drawable
.
bitsPerPixel
;
CARD16
h
=
pPixmap
->
drawable
.
height
;
CARD16
w
=
pPixmap
->
drawable
.
width
;
int
pitch
=
KaaPixmapPitch
(
w
);
PixmapPtr
pScreenPixmap
=
(
*
pScreen
->
GetScreenPixmap
)(
pScreen
);
pKaaPixmap
->
devKind
=
pPixmap
->
devKind
;
pKaaPixmap
->
devPrivate
=
pPixmap
->
devPrivate
;
...
...
@@ -157,7 +157,7 @@ kaaPixmapAllocArea (PixmapPtr pPixmap)
pPixmap
->
drawable
.
width
,
pPixmap
->
drawable
.
height
));
pPixmap
->
devKind
=
pitch
*
(
bpp
>>
3
);
pPixmap
->
devPrivate
.
ptr
=
(
pointer
)
((
CARD8
*
)
pScreenP
ixmap
->
devPrivate
.
ptr
+
pKaaPixmap
->
area
->
offset
);
pPixmap
->
devPrivate
.
ptr
=
(
pointer
)
((
CARD8
*
)
pScreenP
riv
->
screen
->
memory_base
+
pKaaPixmap
->
area
->
offset
);
pPixmap
->
drawable
.
serialNumber
=
NEXT_SERIAL_NUMBER
;
return
TRUE
;
}
...
...
hw/kdrive/src/kdrive.h
View file @
f4bcd36a
...
...
@@ -118,6 +118,7 @@ typedef struct _KdScreenInfo {
int
mynum
;
DDXPointRec
origin
;
KdFrameBuffer
fb
[
KD_MAX_FB
];
CARD8
*
memory_base
;
int
off_screen_base
;
int
off_screen_size
;
pointer
off_screen_areas
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment