Felix Kuehling
ad360a81bd
Added a fast path for emitting unclipped primitives directly to a
vertex buffer. ELTS are not supported yet (missing functionality in
the DRM). You need at least Savage DRM version 2.1.3, which fixes a
bug that screwed up triangle fans and strips.
Moved the texture normalization stage to savagerender.c.
pirms 20 gadiem
Vladimir Dergachev
ca710a0a7f
On the way to getting stencil working.
pirms 20 gadiem
Vladimir Dergachev
76de160b64
On the way to getting stencil and texture formats working.
Looks like the matter of texture formats is a lot simpler, with the wrong
display in quake explained by the fact that we are not handling texture combine modes.
pirms 20 gadiem
Felix Kuehling
b5f49e6f91
Converted to use spantmp2.h.
pirms 20 gadiem
Felix Kuehling
c478a09a5b
Use HW_READ_LOCK and HW_READ_UNLOCK in assembler-optimized span read
functions.
pirms 20 gadiem
Vladimir Dergachev
dbb3ec35a7
Use symbolic constants to describe pixel shader ALU instructions.
pirms 20 gadiem
Aapo Tahkola
ffe7496ac3
Added fixes for filter modes and support for anisotropy filters.
Wrap modes would work perfectly but i messed up something when cleaning up
the code :/ Border color code is incomplete because i forgot to check how to
set border size :)
pirms 20 gadiem
Alan Hourihane
afa05e68b8
Enable line stippling.
pirms 20 gadiem
Keith Whitwell
4ccee80190
Fix previously un-noticed issue with flat-shaded points.
pirms 20 gadiem
Alan Hourihane
faf96a157d
silence a warning
pirms 20 gadiem
Alan Hourihane
42cfcce8d4
Get PolygonStipple working.. (or seemingly too). It seems to do the right
things now given the demos I've used and passes glean's paths test.
pirms 20 gadiem
Alan Hourihane
38595eda39
16bpp doesn't support masked clears, so fallback when they're enabled.
pirms 20 gadiem
Keith Whitwell
96d375c682
Populate WriteMonoDepthSpan in 24/8 modes.
pirms 20 gadiem
Daniel Borca
404273ad09
changed coding style. made `glutTimerFunc' less accurate, but far more reliable.
pirms 20 gadiem
Daniel Borca
0c68589673
changed coding style. added possibility to use default timer instead of PC/HW timer.
pirms 20 gadiem
Daniel Borca
aa7a27b38e
changed coding style. added a NULL pointer check.
pirms 20 gadiem
Daniel Borca
7da875d55f
changed coding style
pirms 20 gadiem
Daniel Borca
f4bff83c32
doc update
pirms 20 gadiem
Vladimir Dergachev
52f5ff525b
Remove redundant register.
Hook up some functions in r300Enable().
pirms 20 gadiem
Vladimir Dergachev
517ac1bf25
Reduce amount of stderr output.
Switch to using R300_EASY_TX_FORMAT() macro everywhere.
pirms 20 gadiem
Vladimir Dergachev
2821b05a0f
Incorporate latest data from Wladimir van der Laan.
pirms 20 gadiem
Vladimir Dergachev
d2001bd88f
Sync with master copy.
pirms 20 gadiem
Dave Airlie
f11d6d4cb4
add -DUSE_EXTERNAL_DXTN_LIB=1 so compressed textures are enabled for solo
pirms 20 gadiem
Alan Hourihane
288114b9db
remove some dead texture code
pirms 20 gadiem
Felix Kuehling
a7ab2b2e0b
Make sure DMA buffers are released in savageDestroyContext. Usually
the DRM would reclaim DMA buffers, but if one process creates and
destroys many contexts it can still run out of DMA buffers.
pirms 20 gadiem
Keith Whitwell
b1d322a1e7
Fix loop for quads-as-triangles.
pirms 20 gadiem
Keith Whitwell
c06f8cb9e5
Rename via_fastrender_* to avoid confusion with similar functions in
via_render.c.
pirms 20 gadiem
Keith Whitwell
a0371b0b3c
Simplify viaChooseVertexState slightly.
pirms 20 gadiem
Keith Whitwell
d9af44f358
Remove misleading comment.
pirms 20 gadiem
Keith Whitwell
edd21a6f72
Typo
pirms 20 gadiem
Keith Whitwell
db19ae89f2
Emit constant colors for texunit 1 blending.
Change comments and some code to match naming used in the docs.
pirms 20 gadiem
Michal Krol
436f4bbd62
add s_atifragshader.c, s_atifragshader.h
pirms 20 gadiem
Michal Krol
7f3e2dac7a
3dlabs glslang frontend
pirms 20 gadiem
Michal Krol
302a414b34
3dlabs glslang frontend, not complete
pirms 20 gadiem
Michal Krol
01d38cdf0c
cosmetic changes
pirms 20 gadiem
Michal Krol
6324f73b93
implement ARB_shader_objects, not complete
pirms 20 gadiem
Michal Krol
8b7cc45f3d
add atifragshader.c, shaderobjects.c, shaderobjects_3dlabs.c, atifragshader.h,
shaderobjects.h, shaderobjects_3dlabs.h
pirms 20 gadiem
Michal Krol
b05e75bf69
add shaderobjects_3dlabs.c
pirms 20 gadiem
Michal Krol
3d52858c78
add ARB_shader_objects interfaces, shared and context state
pirms 20 gadiem
Michal Krol
0e85388ba8
enable ARB_fragment/vertex_shader
pirms 20 gadiem
Michal Krol
9b3752c8ab
init ARB_shader_objects subsystem
pirms 20 gadiem
Michal Krol
8f8534f691
add shader/shaderobjects_3dlabs.c
pirms 20 gadiem
Keith Whitwell
df14522540
cut out dead texture state code
pirms 20 gadiem
Alan Hourihane
5bd6a5f2df
revert some makecurrent code
pirms 20 gadiem
Alan Hourihane
db93e6165e
Fix glean scissor test
pirms 20 gadiem
Vladimir Dergachev
d4330fc322
Prevent "disabling 3D acceleration" message from printing - we do not define raster functions anyway.
pirms 20 gadiem
Vladimir Dergachev
d456ef48e5
Incorporate TX_FORMAT information contributed by Wladimir van der Laan.
Attempt to use it in r300_state.c
We are still missing something and the formats do not quite work.
Perhaps something in texture management code ?
pirms 20 gadiem
Alan Hourihane
3ff4eca05c
As we fallback for polygon stipple on the CLE266 for now, ensure we
don't turn on the polygon stipple hardware bit.
pirms 20 gadiem
Alan Hourihane
cce4d5cb70
Use the faster span read/write template for 16bpp
pirms 20 gadiem
Keith Whitwell
88440d2d75
Don't special-case 16bpp for colormask register - not needed.
pirms 20 gadiem