summaryrefslogtreecommitdiffstats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* glx: fix indentation and remove extraneous breakBrian Paul2010-06-021-2/+1
|
* glx: reformat and silence unused expression warningBrian Paul2010-06-021-1/+2
|
* glsl: handle indirectly indexed input registers in linkerBrian Paul2010-06-021-29/+108
| | | | | | | | | | For example, if the fragment shader reads gl_TexCoord[i] with a dynamic index we need to set all the InputsRead bits for all texcoords. We were already doing this for shader outputs. Refactored the later code so inputs and outputs are handled with similar code. Fixes a swrast failure with piglit's glsl-texcoord-array.shader_test
* mesa: use BITFIELD64_BIT() macroBrian Paul2010-06-021-1/+1
|
* glsl: fix bad sanity-check assertionBrian Paul2010-06-021-1/+1
|
* mesa: whitespace and 80 column wrappingBrian Paul2010-06-021-3/+12
|
* shaders: Don't lose the param binding swizzle for single params.Eric Anholt2010-06-022-2/+2
| | | | | | | | | Multiple item params are OK because we don't allow swizzles for them (in case you do array access to hit their elements, for example). For singles, though, using the swizzle can cut down on storage, we do want to allow a swizzled use of another param. Fixes OGLC texRect.c.
* llvmpipe: Fix bad logic.José Fonseca2010-06-021-1/+1
| | | | Courtesy of Vinson and coverity.
* llvmpipe: Remove unnecessary header.Vinson Lee2010-06-021-1/+0
|
* llvmpipe: Fix typo in assert.José Fonseca2010-06-021-1/+1
|
* llvmpipe: Per quad interpolation.José Fonseca2010-06-022-190/+136
| | | | | | | | | | First interpolate the 4 quads upper left corners, then sub-interpolate each quad pixel. Do the perspective divide once per quad. Saves some muls and reciprocates. But doesn't seem to make a noticeable improvement. It make the code simpler and more compact, so commiting anyway.
* llvmpipe: Minor cleanup to the interpolator.José Fonseca2010-06-022-46/+54
|
* gallivm: Add a lp_build_const_elem().José Fonseca2010-06-022-14/+29
|
* llvmpipe: Store often used LLVM types in the lp_build_context.José Fonseca2010-06-022-2/+30
|
* gallivm: Zero min_lod and max_lod when only one view is selected and min/mag ↵José Fonseca2010-06-021-3/+9
| | | | filter are equal.
* gallivm: Make lp_build_sample_wrap_int usage more accurate.José Fonseca2010-06-021-11/+2
| | | | Fixes mesa texwrap demo border with GL_CLAMP.
* gallivm: Don't use reciprocate in lp_build_sample_wrap_linear().José Fonseca2010-06-021-51/+50
| | | | Always clamp the scaled coordinates.
* gallivm: Avoid fp arithmetic in lp_build_sample_wrap_nearest().José Fonseca2010-06-021-78/+32
|
* gallivm: Don't use lp_build_sample_wrap_nearest()José Fonseca2010-06-021-42/+46
| | | | Always clamp with scaled coordinates.
* llvmpipe: Centralize all position interpolation in lp_bld_interp.c.José Fonseca2010-06-023-51/+43
|
* r300g: use the stored GEM domain in add_buffer/write_relocMarek Olšák2010-06-022-27/+27
| | | | | I admit blitting to/from GTT is actually enforced in this commit, texture transfers are now damned fast!
* r300g: store the GEM domain in buffer and texture structsMarek Olšák2010-06-024-21/+17
|
* r300g: use r300_buffer_domain everywhereMarek Olšák2010-06-028-44/+63
|
* r300g: blit directly to/from GTT when transfering texturesMarek Olšák2010-06-021-2/+5
|
* r300g: let the driver determine the GEM domain for buffer_createMarek Olšák2010-06-027-30/+26
|
* r300g: make texture transfers more pipelinedMarek Olšák2010-06-023-7/+23
| | | | Mostly based on Michel Dänzer's patch.
* r300g: better describe another flush and move it closer to the real problemMarek Olšák2010-06-021-6/+11
| | | | I haven't been able to get rid of this one, see the comments in the code.
* r300g: remove one flushMarek Olšák2010-06-021-5/+0
| | | | Looks like it's not needed now.
* llvmpipe: Obey color interpolation.José Fonseca2010-06-011-16/+17
| | | | | Don't force color to be linearly interpolated when that's not being requested.
* llvmpipe: Use struct lp_shader_input in the interpolator.José Fonseca2010-06-016-110/+160
| | | | | | | | Eliminates all this identical yet slightly different code to decide how shader inputs should be interpolated. As bonus, don't interpolate the position twice when it is listed in the TGSI shader inputs.
* intel: Fallback to meta if we're asked to CopyTexImage2D from RGB to RGBAKristian Høgsberg2010-06-011-0/+8
| | | | | | | The pixel transfer rules state that we must set alpha to 1.0 in this case which we can't easily do with the blitter. We can do to passes: one that sets the alpha to 0xff and one that copies the RGB bits or we can just use the 3D engine. Neither approach seems worth it for this case.
* st/xorg, vmware: Make throttling configurable.Thomas Hellstrom2010-05-3110-26/+160
| | | | | | | | | | | | | | | | | | | | | | | | | The xorg state tracker gets two new options to let the user choose whether to enable / disable dirty throttling and swapbuffer throttling. The default value of these options are enabled, unless the winsys supplies a customizer with other values. The customizer record has been extended to allow this, and also to set winsys-based throttling on a per- context basis. The vmware part of this patch disables the dirty throttling if the kernel supports command submission throttling, and also in that case sets kernel based throttling for everything but swapbuffers. The vmware winsys does not set throttling per context, even if it theoretically could, but instead sets throttling per screen. This should perhaps be changed, should the xorg state tracker start to use multiple rendering contexts. Kernel throttling is off by default for all new screens/contexts, so the dri state tracker is not affected. This significantly improves interactivity of the vmware xorg driver. Cherry-picked from commit a8f3b3f88acc1f0193fa740e76e9d815f07f32ab Signed-off-by: Thomas Hellstrom <[email protected]> Signed-off-by: Jakob Bornecrantz <[email protected]>
* svga: Add a winsys callback to get the svga_winsys_contextThomas Hellstrom2010-05-312-0/+8
| | | | | | | | | | The winsys may need to extract the svga_winsys_context from a pipe_context. Add a function to enable that functionality. Cherry-picked from commit e8a8c5e339dfd7a36bb6435fd34175482b9187b8 Signed-off-by: Thomas Hellstrom <[email protected]> Signed-off-by: Jakob Bornecrantz <[email protected]>
* tgsi: Drop uses_fogcoord and uses_frontfacing from tgsi_scan.José Fonseca2010-06-012-16/+0
| | | | | | | It was not used anywhere; the code was buggy (it didn't take care of indirect registers and could potential cause buffer underflows) and the same effect can now be easily achieved by just by looking at input_semantic_name[] and input_usage_mask[].
* tgsi: Remove tgsi-instruction-set.txt.José Fonseca2010-06-011-1127/+0
| | | | | Deprecated by tgsi.rst, and no point in keeping it around if it's not being updated.
* llvmpipe: Don't waste time interpolating unused input channels.José Fonseca2010-06-016-49/+47
|
* tgsi: Determine which shader input channels are effectively.José Fonseca2010-06-014-7/+177
| | | | | | TGSI's UsageMask flag is never set. We can move this logic into tgsi_ureg, but there there are still cases where's not used, so this seems a better place for now.
* gallium/docs: Update FRAC -> FRC.José Fonseca2010-06-011-1/+1
|
* mesa: use split_location_offset() in GetUniform() functionsBrian Paul2010-06-011-47/+54
| | | | | | | | | | | Commit 5d0e136eff54a34258b5adaeda4cb267831e8234 exposed a long-standing bug in the glGetUniform*() code paths. We weren't properly decoding the location parameter. Fixes fd.o bug/regression 28344 Note: this patch should go into the 7.8 branch after the above-mentioned commit.
* st/xorg: Fix Xv cliprect scaling.Thomas Hellstrom2010-05-313-9/+9
| | | | | | | Due to a quantization error, different cliprects of scaled video windows may not have identical x / y scale. Signed-off-by: Thomas Hellstrom <[email protected]>
* st/xorg Avoid advertizing rotation / reflection support.Thomas Hellstrom2010-05-311-3/+6
| | | | | | | We don't support it yet since we don't implement the shadow allocate functions. Signed-off-by: Thomas Hellstrom <[email protected]>
* vgapi: Generate PIC objects.Chia-I Wu2010-06-011-1/+1
| | | | Fixes "...; recompile with -fPIC" error on x86-64. See fdo 28336.
* glapi: Generate PIC objects.José Fonseca2010-05-311-1/+1
| | | | Fixes fdo 28336.
* llvmpipe: Show fs's TGSI when LP_DEBUG=tgsi is set.José Fonseca2010-05-311-1/+2
|
* st/egl: Use stamps only to avoid unnecessary geometry update.Chia-I Wu2010-05-312-20/+16
| | | | | | resource_surface_add_resources should still be called even when the stamps match. For example, a caller may ask for two different sets of attachments.
* mesa: Fix excess initializers in get.c table.Chia-I Wu2010-05-311-2/+2
|
* swrast: add TFP support to swrast.Dave Airlie2010-05-311-0/+69
| | | | | | | | | This adds TFP support to the swrast driver, with this I can run gnome-shell inside Xephyr slowly. I've no idea why I did it, and g-s has other rendering issues under swrast, but it might be useful to hook up llvmpipe later. I've no idea if I even want to commit it at this point. An enhanced version might just pass the pointer in the indirect rendering case and avoid the memcpy. Signed-off-by: Dave Airlie <[email protected]>
* gallium: fix TFP on galliumDave Airlie2010-05-312-0/+3
| | | | | | | | This fixes an uninitialised value use in the dri2 st when doing TFP. It uses the driContextPriv which isn't initialised at alloc time. Signed-off-by: Dave Airlie <[email protected]>
* st/egl: Update KMS backend to use resource_surface.Chia-I Wu2010-05-312-50/+28
|
* st/egl: Update GDI backend to use resource_surface.Chia-I Wu2010-05-311-146/+51
|