summaryrefslogtreecommitdiff
path: root/src/mesa/drivers/dri/radeon
AgeCommit message (Collapse)Author
2009-07-20Merge branch 'mesa_7_5_branch'Michel Dänzer
2009-07-20radeon: With DRI1, if we have HW stencil, only expose fbconfigs with stencil.Michel Dänzer
Otherwise simple apps like glxgears pick up a DirectColor visual since the X server mixes the depth 32 visual in with the other GLX visuals, and this seems to result in a (mostly) black screen due to a bad ColorMap for a lot of people. The bad ColorMap may be a bug in the apps, the X server or X driver, and regardless of that I think the X server should ideally make the depth 32 GLX visual separate from the rest again, but in the meantime this makes us cope. (depth_bits is either 16 or 24, never 0)
2009-07-18radeon: disable BO debugDave Airlie
2009-07-17R6xx/r7xx: warning fixesKevin DeKorte
patch from Kevin DeKorte with some minor fixes from me.
2009-07-16Fix more merge falloutAlex Deucher
2009-07-15radeon bo: Fix merge fall outAlex Deucher
2009-07-15Merge branch 'master' of git+ssh://agd5f@git.freedesktop.org/git/mesa/mesa ↵Alex Deucher
into r6xx-rewrite This builds, but I get an assertion in radeonGetLock() due to the drawable being null.
2009-07-15make sure ctx->Driver.Flush is valid before calling itAlex Deucher
2009-07-15Use memcpy directly in the common codeAlex Deucher
This alleviates the need for an additional symbol.
2009-07-15radeon: update span reading micro tile codeDave Airlie
tested on r500 with zreaddraw with Z buffer in all 3 modes
2009-07-15radeon: r300 fix span reading for macro tiled buffers.Dave Airlie
this uses the correct formula for macro tiled buffers for readback
2009-07-15radeon: for tiling you really need to use GET/PUT VALUE not PTR.Dave Airlie
since the surfaces aren't linear you can't just use GET_PTR
2009-07-14R6xx/r7xx: implement memcpy buffer swapsAlex Deucher
This allows double buffered apps to run, but perfomance will be awful until we implement something faster. You must update to the latest kernel modules.
2009-07-15intel/radeon: add common metaops code.Dave Airlie
Move all the metaops to a dri_metaops file and port radeon/intel to use the new common meta ops code.
2009-07-14R6xx/R7xx: no irqs yet.Alex Deucher
2009-07-15radeon: fix unsigned vs signed comparison in stencil code.Dave Airlie
This function takes a GLint not a GLuint, passing in -1 breaks internally.
2009-07-14radeon: Differentiate 16 bpp destination formats.Michel Dänzer
Fixes those formats in fbo_firecube. Only tested with r300, radeon and r200 compile tested only.
2009-07-14radeon: Invert front face winding when rendering to FBO.Michel Dänzer
Fixes fgl_glxgears and progs/demos/fbotexture after pressing 'c'. Tested with r300, radeon and r200 compile tested only.
2009-07-14radeon: port more front fixes from intel.Dave Airlie
Port fixes to read buffer from front.
2009-07-14radeon/r200: fix color masking under dri2Dave Airlie
Need to retrieve the bits from the rrb not from screen struct
2009-07-14radeon: Use Stencil.Enabled instead of Stencil._Enabled in DrawBuffers.Dave Airlie
The _Enabled field isn't updated at the point that DrawBuffers is called, and the Driver.Enable() function does the testing for stencil buffer presence anyway.
2009-07-14radeon/fbo: stencil bits fix from Michel in intel fbo codeDave Airlie
2009-07-12radeon: Fix crash when rendering to incomplete texture and other formatsNicolai Hähnle
It is possible to bind texture images of an incomplete mipmapped texture. Software fallbacks in this case incorrectly tried to mmap the entire texture. Additionally, add span functions for 1555 and 4444 formats. This fixes crashes in piglit's fbo-readpixels test; unfortunately, the test itself still fails - this needs to be investigated. Signed-off-by: Nicolai Hähnle <nhaehnle@gmail.com>
2009-07-12radeon: update clear code from Intel codebase.Dave Airlie
This updates some of the clear code from Intel gives a 5x clearspd perf for me here. played openarena also, not sure if the viewport changes broke anything,
2009-07-12radeon: fbo fix firecube crashesDave Airlie
it might still be misrendering not sure
2009-07-11radeon: Fix scissor rectangle calculation when rendering to FBO.Michel Dänzer
fgl_glxgears -fbo runs, though the gears don't look right yet.
2009-07-11radeon: enable GL_NV_texture_rectangle under dri2.Dave Airlie
2009-07-11radeon: set texture in state properly.Dave Airlie
make sure to turn off when no texture is used in hw
2009-07-11radeon: make swtcl emit size biggerDave Airlie
2009-07-08Fix buffer age implementaion bug.Richard Li
2009-07-07r6xx/r7xx: add sw blit for tex uploadAlex Deucher
Can be used for buffer swap as well.
2009-07-06R6xx/r7xx: first pass at texture supportAlex Deucher
texture bo setup isn't quite working yet
2009-07-08radeon: fix copy and paste typoMaciej Cencora
2009-07-06radeon: fixup FBO depth 24 allocations to avoid assertDave Airlie
2009-07-06radeon/r200/r300: port to new space checking code in libdrmDave Airlie
This moves a big chunk of the space checking code into libdrm so it can be shared by the DDX.
2009-07-03radeon: Wait for BO idle if necessary before mapping it.Michel Dänzer
Fixes fighting between GPU and software rendering with TTM.
2009-07-02radeon/r200/r300: drop radeon renderbuffer private width/heightDave Airlie
half stealing the code without taking the intel regions
2009-07-02radeon/r300: use base width/height.Dave Airlie
I suspect this might break TFP in some way but it makes firecube run here
2009-06-19radeons: use dp4 for position invariant vertex programsRoland Scheidegger
Fixes #22181. R200 requires this since DP4 is used in hw tnl mode. R300 prefers it (should be faster due to no instruction dependencies), but both methods should be correct (when sw tcl is used though, MUL/MAD might be faster). Probably doesn't make much difference for R100 since vertex progs are executed in software anyway, but let's just keep it the same there too.
2009-06-29Revert "r200: make use of DMA buffers for Elts a lot better."Dave Airlie
This reverts commit 0952645fe04a27968565ea4d913500c23b1b11e3. Need to revisit where this is going wrong
2009-06-27radeon: Always initialize front and back renderbuffers if presentNicolai Hähnle
This fixes an assertion in glReadPixels from the front buffer. Signed-off-by: Nicolai Hähnle <nhaehnle@gmail.com>
2009-06-26r200: make use of DMA buffers for Elts a lot better.Dave Airlie
This allows us to return the unused portion of the dma buffer to the allocator instead of wasting nearly 16k a pop.
2009-06-25radeon: fix hw texture limitsRoland Scheidegger
still always enable max, but the right values this time. More work should probably be done for saner limits without mm, and/or dri conf option allow_large_textures (which is ignored) removed. 3D limit on r100 is pretty arbitrary as still handled by swrast anyway. Also fix r300 limits (except 3d I've no idea what the max is anyway so keep using mesa default).
2009-06-25radeon/r200: add some hw texture limitsDave Airlie
2009-06-25radeon: fix stupidity in cs space check code.Dave Airlie
This was already correct in the GEM code
2009-06-20radeon: make cubemap mipmap generation workRoland Scheidegger
need to pass target parameter to radeon_teximage/radeon_subteximage functions otherwise mipmap generation for cube maps can't work (assert/segfault in _mesa_generate_mipmap)
2009-06-19radeon: fix cube maps for non-mm pathRoland Scheidegger
drm cmd checker would refuse cube emits also fix an issue in the cs path which would calculate the register offset off by one dword. Only same testing done as original code (none except compile tested).
2009-06-19radeons: use dp4 for position invariant vertex programsRoland Scheidegger
Fixes #22181. R200 requires this since DP4 is used in hw tnl mode. R300 prefers it (should be faster due to no instruction dependencies), but both methods should be correct (when sw tcl is used though, MUL/MAD might be faster). Probably doesn't make much difference for R100 since vertex progs are executed in software anyway, but let's just keep it the same there too.
2009-06-18radeon: don't re-add BOs to validate listDave Airlie
if its on the list its on the list don't go readding it. multitexturing from the same texture could cause this.
2009-06-17radeon: Flush command buffer on viewport changeJerome Glisse
We flush the command buffer so we don't emit mixed state (with new and previous buffer size) command buffer, this is especialy affecting zbuffer states.