summaryrefslogtreecommitdiffstats
path: root/src/mesa
Commit message (Collapse)AuthorAgeFilesLines
* gallium: add point size clamp to implementation limits in vertex shaderRoland Scheidegger2010-02-045-1/+108
| | | | | | | | | | | | | | | | The point size min/max registers (unused by mesa state tracker) were removed since most hardware couldn't do much with them. However, we don't want to have to rely on hw to do point size clamping correctly to implementation dependent limits, hence have to do that in the vertex shader. This should also solve a potential problem with (non-AA) points smaller than 1.0 which according to OGL still have size 1.0. Note that OGL point rendering is odd, in particular point sprites are rasterized differently to points. Some hardware might support those different modes, but in any case the different clamping values used for smooth/multisampled/sprite enabled points might help a bit for hw which rasterizes points the same as point sprites. Also tweak mesa's ff to vertex shader translation so don't have to clamp twice in case of point attenuation.
* gallium: clean up point sprite rasterizer stateRoland Scheidegger2010-02-031-12/+13
| | | | | | | | | | Don't need sprite coord origin per coord. Also, don't need separate sprite enable bit - if all coords have it diabled, then there are no point sprites (technically, there's a distinction in pre-GL3, but it only differs in having more leniency in clamping to max size, something the state tracker would need to handle and the hardware won't bother anyway). Also, use packed field for the per-coord enables. All in all, should save 3 dwords in rasterizer state (from 10 down to 7).
* gallium: remove point_size_min and point_size_max from rasterizer stateRoland Scheidegger2010-01-121-3/+0
| | | | | | | The state tracker is responsible for clamping to any graphics API enforced size min/max limits for both the static point_size setting as well as per vertex point size (in the vertex shader). Note that mesa state tracker didn't actually use these values.
* st: Mark functions in st_public.h and vg_tracker.h as public.Chia-I Wu2010-01-111-0/+22
| | | | | | | These functions are the API of Gallium state tracker, and are used by EGL. Signed-off-by: Chia-I Wu <[email protected]>
* Fix compressed texture loads for non-minimal pitchesLuca Barbieri2010-01-111-1/+16
| | | | | | | | | | | | | | | The current glCompressedTexImage support in the state tracker assumes that compressed textures have minimal pitch. However, in some cases this is not true, such as for mipmaps of non-POT compressed textures on nVidia hardware. This patch adds a check and does a memcpy for each line instead of the whole image in that case. Signed-off-by: Keith Whitwell <[email protected]> Tweaks for C90 compilation.
* radeon: fix prediction for r100 inline vert/elt emits.Dave Airlie2010-01-111-0/+1
| | | | | On r100 we emit the indices inline so we need to account for that in the emission size.
* radeon: fix bug in realloc code.Dave Airlie2010-01-111-1/+1
| | | | This bug was fixed in libdrm ages ago, port to non-kms
* st/dri: update dri2 drawables when viewport is changedBen Skeggs2010-01-111-2/+2
| | | | | | | Fixes gnome-shell on nouveau, as well as window resize with various other applications. Signed-off-by: Ben Skeggs <[email protected]>
* r300: minor accelerated blit fixesMaciej Cencora2010-01-091-1/+14
|
* r300: fallback on depth buffer blitsMaciej Cencora2010-01-091-3/+5
| | | | Depth buffer accelerated blits aren't implemented yet.
* Merge branch 'mesa_7_7_branch'Brian Paul2010-01-089-45/+65
|\ | | | | | | | | | | Conflicts: src/mesa/drivers/dri/i965/brw_wm_emit.c
| * mesa: Ensure libmesagallium.a is finished building before descendingDan Nicholson2010-01-081-1/+1
| | | | | | | | Signed-off-by: Dan Nicholson <[email protected]>
| * r300: Move initial declaration outside for loop.Vinson Lee2010-01-081-2/+4
| |
| * meta: remove F suffix from _mesa_Ortho() paramsBrian Paul2010-01-061-3/+3
| | | | | | | | _mesa_Ortho() takes GLdoubles.
| * meta: move destination vertex/projection setup out of _mesa_meta_GenerateMipmapBrian Paul2010-01-061-19/+21
| | | | | | | | Based on a patch submitted by Pierre Willenbrock <[email protected]>
| * meta: set viewport and projection matrix in _mesa_meta_GenerateMipmapBrian Paul2010-01-061-0/+9
| | | | | | | | | | | | This fixes mipmap levels being clipped to the last viewport. Based on a patch submitted by Pierre Willenbrock <[email protected]>
| * r600: adjust after radeon mipmap changes in 7118db8700Andre Maasikas2010-01-062-6/+5
| | | | | | | | | | | | R600_OUT_BATCH_RELOC doesn't really use offset so set it in TEX_RESOURCE2 + typo fix
| * tnl: set FOGC result to (f,0,0,1)Brian Paul2010-01-061-0/+7
| | | | | | | | Fixed FDO bug 23397.
| * r600: float texture component orderingPierre Ossman2010-01-061-20/+20
| | | | | | | | | | | | | | The ordering of texture components was backwards for the floating point textures. Signed-off-by: Pierre Ossman <[email protected]>
| * mesa: test index bounds before array elementRoel Kluin2010-01-063-3/+3
| | | | | | | | | | | | | | Check whether the index is within bounds before accessing the array. Signed-off-by: Roel Kluin <[email protected]> Signed-off-by: Brian Paul <[email protected]>
| * i965: fix invalid assertion in emit_xpd(), againBrian Paul2010-01-061-1/+1
| |
* | intel: Remove leftover symlinks from DRI1 removal.Eric Anholt2010-01-072-2/+0
| |
* | swrast: fix color masking for glAccum(GL_RETURN)Brian Paul2010-01-071-4/+4
| | | | | | | | Should fix fdo bug 25837.
* | i810: use ColorMask[0]Brian Paul2010-01-071-1/+1
| |
* | r300/compiler: add full viewport transformation support in WPOS codegenMarek Olšák2010-01-064-6/+16
| |
* | Make sure we use only signed/unsigned ints with bitfields.Michal Krol2010-01-063-13/+13
| | | | | | | | Seems to be the only way to stay fully portable.
* | Merge remote branch 'origin/mesa_7_7_branch'José Fonseca2010-01-067-306/+337
|\| | | | | | | | | | | | | Conflicts: configs/default src/gallium/auxiliary/pipebuffer/pb_buffer_fenced.c src/mesa/main/version.h
| * i965: fix invalid assertion in emit_xpd()Brian Paul2010-01-051-1/+1
| | | | | | | | Invalid assertion found by Roel Kluin <[email protected]>
| * tdfx: condition always evaluates to false in SetupDoubleTexEnvVoodoo3()Roel Kluin2010-01-051-1/+1
| | | | | | | | | | | | This can never be true. Signed-off-by: Roel Kluin <[email protected]>
| * st/mesa: fix broken translation of negative register indexesBrian Paul2010-01-051-4/+16
| | | | | | | | | | | | | | | | | | | | A src register's index can be negative if we're doing indirect addressing into the constant buffer. Ex: MOV OUT[1], CONST[ADDR[0].x-3] This fixes the piglit vp-arl-neg-array.vpfp test. Before this change we were going out of bounds of the t->constants[] array and getting garbage that later triggered an assertion.
| * ARB prog parser: regenerated parser fileBrian Paul2010-01-051-2/+5
| |
| * ARB prog parser: fix parameter binding typeBrian Paul2010-01-051-2/+5
| | | | | | | | | | | | | | | | | | | | References to program local and enviroment parameters are put into the unified program parameters list as PROGRAM_STATE_VAR entries which point into the local or environment arrays. So the param_binding_type field should be PROGRAM_STATE_VAR. This fixes the piglit vpfp-generic vp-arl-env-array.vpfp and vp-arl-local-array.vpfp test failures.
| * ARB prog parser: regenerated parser filesBrian Paul2010-01-052-275/+285
| |
| * ARB prog parser: add allowSwizzle param to initialize_symbol_from_const()Brian Paul2010-01-051-8/+14
| | | | | | | | | | | | | | | | We need to disable constant consolidation when building an array of constants which might be indexed indirectly. Fixes regression in piglit vpfp-generic vp-arl-constant-array.vpfp test caused by earlier constant consolidation patch.
| * mesa: whitespace changes and commentsBrian Paul2010-01-051-10/+6
| |
| * mesa: change constant search behaviour in _mesa_add_unnamed_constant()Brian Paul2010-01-051-4/+4
| | | | | | | | | | | | Only search for an existing, matching constant if swizzleOut is non-null. We need to be able to disable constant consolidation when building an array of constants which will be indexed indirectly.
| * st/mesa: added PROGRAM_LOCAL_PARAM case in src_register()Brian Paul2010-01-051-0/+1
| | | | | | | | Fixes piglit vpfp-generic arl.vpfp failure when using gallium.
| * mesa: bump version to 7.7.1-DEVELBrian Paul2010-01-051-4/+4
| |
* | gallium: remove PIPE_TEX_FILTER_ANISOLuca Barbieri2010-01-061-4/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch removes PIPE_TEX_FILTER_ANISO. Anisotropic filtering is enabled if and only if max_anisotropy > 1.0. Values between 0.0 and 1.0, inclusive, of max_anisotropy are to be considered equivalent, and meaning to turn off anisotropic filtering. This approach has the small drawback of eliminating the possibility of enabling anisotropic filter on either minification or magnification separately, which Radeon hardware seems to support, is currently support by Gallium but not exposed to OpenGL. If this is actually useful it could be handled by splitting max_anisotropy in two values and adding an appropriate OpenGL extension. NOTE: some fiddling & reformatting by keithw to get this patch to apply. Hopefully nothing broken in the process.
* | mesa: added GL_MAJOR_VERSION and GL_MINOR_VERSION queriesBrian Paul2010-01-052-0/+26
| | | | | | | | New in GL 3.0.
* | mesa: call _mesa_compute_version() to set context's version infoBrian Paul2010-01-052-80/+6
| |
* | mesa: added version.c to buildBrian Paul2010-01-052-0/+2
| |
* | mesa: added _mesa_compute_version() in new version.c fileBrian Paul2010-01-052-0/+137
| |
* | mesa: added version fields to GLcontextBrian Paul2010-01-051-0/+4
| |
* | i965: Fix build after blind merge of mesa 7.7 by Brian.Eric Anholt2010-01-051-2/+3
| |
* | Merge branch 'remove-intel-dri1'Kristian Høgsberg2010-01-05153-2163/+807
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * remove-intel-dri1: intel: intelScreenContext() is no longer used intel: Remove remaining dri2.enabled tests intel: Drop more cliprect bookkeeping intel: Remove struct intel_framebuffer intel: Remove client-side vblank code intel: Drop intelWindowMoved() intel: Drop batchbuffer cliprect_mode tracking intel: Drop DRI1 static regions intel: Use depth buffer from ctx.DrawBuffer in copypix_src_region() intel: Drop LOCK/UNLOCK_HARDWARE() intel: Drop DRI1 SwapBuffer implementation intel: Drop DRI1 CopySubBuffer implementation intel: Drop DRI1 support Push __driDriverExtensions out of dri_util.c and into the drivers Remove leftover __DRI{screen,drawable,context}Private references Check for libdrm_$chipset.pc when needed
| * | intel: intelScreenContext() is no longer usedKristian Høgsberg2010-01-041-15/+0
| | |
| * | intel: Remove remaining dri2.enabled testsKristian Høgsberg2010-01-042-27/+0
| | |
| * | intel: Drop more cliprect bookkeepingKristian Høgsberg2010-01-046-122/+44
| | |
| * | intel: Remove struct intel_framebufferKristian Høgsberg2010-01-045-90/+51
| | | | | | | | | | | | | | | | | | With the vsync fields no longer relevant and by refactoring the code to no longer use color_rb[0-1] we can just use struct gl_framebuffer directly.