aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/r200
Commit message (Collapse)AuthorAgeFilesLines
* Remove leftover __DRI{screen,drawable,context}Private referencesKristian Høgsberg2010-01-045-15/+15
| | | | | | | | | As part of the DRI driver interface rewrite I merged __DRIscreenPrivate and __DRIscreen, and likewise for __DRIdrawablePrivate and __DRIcontextPrivate. I left typedefs in place though, to avoid renaming all the *Private use internal to the driver. That was probably a mistake, and it turns out a one-line find+sed combo can do the mass rename. Better late than never.
* mesa: implement per-buffer color maskingBrian Paul2009-12-292-12/+12
| | | | | | | | | | | This is part of the GL_EXT_draw_buffers2 extension and part of GL 3.0. The ctx->Color.ColorMask field is now a 2-D array. Until drivers are modified to support per-buffer color masking, they can just look at the 0th color mask. The new _mesa_ColorMaskIndexed() function will be called by glColorMaskIndexedEXT() or glColorMaski().
* radeon/r600: use new libdrm_radeon apiDave Airlie2009-12-215-1/+5
|
* radeon/r200/r600: fix drivers for changes in ↵Alex Deucher2009-12-051-13/+2
| | | | 433f0a82f5a4696e6b0c4061f645485ec8079bb4
* Merge branch 'mesa_7_7_branch'Jakob Bornecrantz2009-12-024-17/+11
|\
| * Merge commit 'mesa_7_6_branch' into mesa_7_7_branchJakob Bornecrantz2009-12-024-17/+11
| |\ | | | | | | | | | | | | Conflicts: src/mesa/main/version.h
| | * r200: fix polygon stippleAlex Deucher2009-12-034-17/+11
| | | | | | | | | | | | | | | | | | fixes fdo bug 25354 Signed-off-by: Alex Deucher <[email protected]>
* | | radeon/r200/r300/r600: make bo mapping be explicitDave Airlie2009-11-242-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This moves the bo mapping outside the DMA layer and makes it explicit, this should in theory make it simpler to split the clean up the dma/cmdbuf linkage that I created before that is broken. Tested on: r600, rv380 (tcl/no-tcl), rv200 (tcl/no-tcl) Signed-off-by: Dave Airlie <[email protected]>
* | | Merge remote branch 'origin/mesa_7_7_branch'Dave Airlie2009-11-203-30/+14
|\| |
| * | Merge branch 'radeon-texrewrite-clean' into mesa_7_7_branchMaciej Cencora2009-11-183-30/+14
| |\ \
| | * | r200: align for mipmap tree changesMaciej Cencora2009-11-173-30/+14
| | | |
* | | | tnl: Replace deprecated TexCoordPtr with AttribPtr[_TNL_ATTRIB_TEX*]Eric Anholt2009-11-191-1/+1
|/ / /
* / / Merge branch 'outputswritten64'Ian Romanick2009-11-171-7/+8
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add a GLbitfield64 type and several macros to operate on 64-bit fields. The OutputsWritten field of gl_program is changed to use that type. This results in a fair amount of fallout in drivers that use programs. No changes are strictly necessary at this point as all bits used are below the 32-bit boundary. Fairly soon several bits will be added for clip distances written by a vertex shader. This will cause several bits used for varyings to be pushed above the 32-bit boundary. This will affect any drivers that support GLSL. At this point, only the i965 driver has been modified to support this eventuality. I did this as a "squash" merge. There were several places through the outputswritten64 branch where things were broken. I foresee this causing difficulties later for bisecting. The history is still available in the branch. Conflicts: src/mesa/drivers/dri/i965/brw_wm.h
* | Merge branch 'texformat-rework'Brian Paul2009-10-283-14/+12
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: src/mesa/drivers/dri/radeon/radeon_fbo.c src/mesa/drivers/dri/s3v/s3v_tex.c src/mesa/drivers/dri/s3v/s3v_xmesa.c src/mesa/drivers/dri/trident/trident_context.c src/mesa/main/debug.c src/mesa/main/mipmap.c src/mesa/main/texformat.c src/mesa/main/texgetimage.c
| * | mesa: choose texture format in core mesa, not driversBrian Paul2009-10-251-3/+1
| | | | | | | | | | | | | | | | | | Call the ctx->Driver.ChooseTextureFormat() function from core Mesa's _mesa_[Copy]TexImage functions instead of in the driver functions. One less thing for drivers to do.
| * | mesa: remove a bunch of gl_renderbuffer fieldsBrian Paul2009-10-081-4/+6
| | | | | | | | | | | | | | | | | | _ActualFormat is replaced by Format (MESA_FORMAT_x). ColorEncoding, ComponentType, RedBits, GreenBits, BlueBits, etc. are all replaced by MESA_FORMAT_x queries.
| * | drivers: don't include texformat.hBrian Paul2009-10-052-2/+0
| | | | | | | | | | | | And remove other unneeded #includes while we're at it.
| * | mesa: remove gl_texture_image::IsCompressed fieldBrian Paul2009-10-011-1/+1
| | | | | | | | | | | | Use _mesa_is_format_compressed() instead.
| * | mesa: replace gl_texture_format with gl_formatBrian Paul2009-09-301-4/+4
| | | | | | | | | | | | | | | | | | Now gl_texture_image::TexFormat is a simple MESA_FORMAT_x enum. ctx->Driver.ChooseTexture format also returns a MESA_FORMAT_x. gl_texture_format will go away next.
| * | mesa/drivers: use _mesa_get_format_bytes()Brian Paul2009-09-271-1/+1
| | |
* | | mesa: Enable remap table in core.Chia-I Wu2009-10-231-8/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This enables the remap table in core. driInitExtensions is adapted to use the remap table. All uses of extension_helper.h are replaced by remap_helper.h. The chicken-egg problem of the DRI drivers is also solved. It is now also possible to pass NULL extensions to driInitExtensions. It will cause driInitExtensions to map all known functions. This functionality is used by software drivers and EGL_i915. Signed-off-by: Chia-I Wu <[email protected]>
* | | mesa: lift default symlinks target into Makefile.templateBrian Paul2009-10-161-1/+0
| | | | | | | | | | | | Driver Makefiles can still add symlink dependencies/rules if needed.
* | | Merge branch 'mesa_7_6_branch'Brian Paul2009-10-051-11/+4
|\ \ \ | |/ / |/| / | |/ | | | | Conflicts: src/gallium/auxiliary/util/u_cpu_detect.c
| * r200: remove subpixel offset from viewportFrederic Crozat2009-10-041-11/+4
| | | | | | | | Fixes bug fdo 20340 for r200.
* | radeon: cleanup compile defines mess.Dave Airlie2009-09-161-2/+1
|/ | | | | I inherited this and really it stayed around far too long, make it nice and simple.
* radeon: fix r100/r200 polygon stipple under kmsDave Airlie2009-09-013-1/+31
| | | | | | | | There really need to use state emits under kms, otherwise we end up with some dwords in the command buffer before we've ever emitted any useful state. Signed-off-by: Dave Airlie <[email protected]>
* r200: emit cube for kms correctly + fix tex emit resetDave Airlie2009-09-012-2/+4
| | | | CS checker found some issues.
* r200: emit max vtx info for index buffer.Dave Airlie2009-09-013-0/+12
| | | | We need this for the CS bounds checking.
* r200: Convert r200 to use new style debug code.Pauli Nieminen2009-08-3112-106/+73
| | | | Only very few places where realy converted so there isa lot of to do.
* radeon: Add common debugging functions.Pauli Nieminen2009-08-312-0/+2
| | | | | | | | | | These function are aiming to make it very simple to add and keep large amount of debugging code without having runtime impact in relase builds. Basic idea is to expose simple printf style debugging functions that are inlined. Level parameter will be evalueted in compile time so compiler can optimise some of debugging functions out if compile time request for debug level is too tight.
* radeon: Fix swtcl emit pediction.Pauli Nieminen2009-08-291-5/+14
| | | | | | Problem was to find the correct place to run prediction. Only place that is called for every primitive is ALLOC_VERTS so we have to do prediction there before allocation.
* r100/r200: Bring back old PolygonStripple for DRI1.Pauli Nieminen2009-08-284-5/+7
| | | | DRI1 didn't have support for command buffer emit for stripple.
* r100/r200: Share PolygonStripple code.Pauli Nieminen2009-08-281-31/+1
|
* r200: Fix piglit paths test.Pauli Nieminen2009-08-282-11/+17
| | | | | Polygon stipple has to go to command buffer because special ioctl is disabled. Piglit doesn't like HyperZ warning so disable it for kms.
* radeon: fix scissors harder.Dave Airlie2009-08-281-2/+2
| | | | this makes gnome-shell work on r300 for me
* radeon/r200/r300: Fix swtcl prediction to work after primitie change.Pauli Nieminen2009-08-271-12/+25
| | | | | Swtcl calls flush everytime primitive changes so prediction has to made again after flushing.
* radeon/r200/r300: Fix swtcl flushing not to invalidate dma region.Pauli Nieminen2009-08-271-3/+19
| | | | | We were check command buffer sizes too alte so allocated dma regions were freed before relocations so space checking failed.
* radeon/r100/r200: actually init the OQ support properlyDave Airlie2009-08-261-0/+1
|
* radeon/r200: OQ support for r200 in theory.Dave Airlie2009-08-263-0/+30
| | | | this is an untested port of the r100 OQ code
* r200: Add scissor to state atom list.Pauli Nieminen2009-08-268-78/+115
| | | | Scissors are jsut one of states that we have to emit so it should be in state list
* r200: Addd missing parameter to debug output.Pauli Nieminen2009-08-251-1/+1
|
* r200: Fix commit size prediction.Pauli Nieminen2009-08-251-1/+4
| | | | Scissor are emited for every primitive so fix that in prediction.
* radeon: Fix all compiler warnings.Pauli Nieminen2009-08-253-9/+10
|
* radeon/r200/r300/r600: Warn if we emit more than prediction was.Pauli Nieminen2009-08-251-5/+16
| | | | | | Prediction code making too small prediction may cause space check aserttion failure later in rendering. So warning about any failure to predict correctly should be fixed.
* radeon: Improve state emit code.Pauli Nieminen2009-08-212-2/+2
| | | | Trying to make understanding code easier with small refactoring and renaming.
* r200: Make swtcl use state size prediction for flush.Pauli Nieminen2009-08-211-1/+1
| | | | Signed-off-by: Pauli Nieminen <[email protected]>
* r200: Remove unnecessery Elts from r200 context.Pauli Nieminen2009-08-212-6/+2
| | | | Signed-off-by: Pauli Nieminen <[email protected]>
* r200: Remove unnecessary calls to rcommonEnsureCmdBufSpace.Pauli Nieminen2009-08-211-5/+0
| | | | | | Calling EnsureCmdBufSpace is not required because rendering pipeline has to quarentee free space. Signed-off-by: Pauli Nieminen <[email protected]>
* r200: Fix atom->check call to return emit size for atom.Pauli Nieminen2009-08-211-158/+301
| | | | | | | This patch makes render emit size prediction count the corect maximum emit size for state. Signed-off-by: Pauli Nieminen <[email protected]>
* r200: Prevent flush in middle of rendering.Pauli Nieminen2009-08-212-3/+59
| | | | | | | | | | | Patch adds prediction functionthat tries to predict emit size to the smallest possible values that is quarenteed to be higher than worst case scenario in rendering pipeline. State emit size prediction code is in place but fix for emit sizes is included in next patch. Signed-off-by: Pauli Nieminen <[email protected]>