aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa
Commit message (Collapse)AuthorAgeFilesLines
...
| * gallium: rework handling of sprite_coord_enable stateBrian Paul2010-09-172-12/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Implement the pipe_rasterizer_state::sprite_coord_enable field in the draw module (and softpipe) according to what's specified in the documentation. The draw module can now add any number of extra vertex attributes to a post-transformed vertex and generate texcoords for those attributes per sprite_coord_enable. Auto-generated texcoords for sprites only worked for one texcoord unit before. The frag shader gl_PointCoord input is now implemented like any other generic/texcoord attribute. The draw module now needs to be informed about fragment shaders since we need to look at the fragment shader's inputs to know which ones need auto-generated texcoords. Only softpipe has been updated so far.
* | r300/compiler: Refactor the pair instruction data structuresTom Stellard2010-09-204-38/+21
| | | | | | | | | | | | | | | | | | | | | | Use rc_pair_ prefix for all pair instruction structs Create a named struct for pair instruction args Replace structs radeon_pair_instruction_{rgb,alpha} with struct radeon_pair_sub_instruction. These two structs were nearly identical and were creating a lot of cut and paste code. These changes are the first step towards removing some of that code.
* | dri/nouveau: Fix software mipmap generation on 1x1 textures.Francisco Jerez2010-09-211-1/+1
| |
* | dri/nv10-nv20: Fix texturing in some cases after a base level change.Francisco Jerez2010-09-213-11/+10
| |
* | dri/nouveau: Cleanup more references to old FBOs and VBOs.Francisco Jerez2010-09-212-4/+4
| |
* | dri/nouveau: Remove unnecessary assertion.Francisco Jerez2010-09-211-5/+0
| |
* | dri/nv04: Use nvgl_wrap_mode().Francisco Jerez2010-09-211-20/+2
| |
* | Fix typos in comments and debug output strings.Timo Wiren2010-09-203-6/+6
| | | | | | | | Bug #30208.
* | st/mesa: fix assertion failure in GetTexImage for cubemapsMarek Olšák2010-09-201-0/+6
| | | | | | | | | | | | Can be reproduced with mesa/demos/src/tests/blitfb. NOTE: This is a candidate for the 7.9 branch.
* | mesa: don't call valid_texture_object() in non-debug buildsBrian Paul2010-09-201-5/+2
| | | | | | | | | | | | | | | | | | This reverts commit c32bac57ed445e48856d74113364287ed6e5cdd4 and silences the warning differently. The _mesa_reference_texobj() function is called quite a bit and we don't want to call valid_texture_object() all the time in non- debug builds.
* | x86: Silence unused variable warning on Mac OS X.Vinson Lee2010-09-171-0/+2
| | | | | | | | | | Silences the following GCC warning on Mac OS X. x86/common_x86.c:58: warning: 'detection_debug' defined but not used
* | mesa: Silence "'valid_texture_object' defined but not used" warning.Vinson Lee2010-09-171-1/+5
| |
* | ir_to_mesa: Remove unused member array_indexed from struct statevar_element.Vinson Lee2010-09-171-1/+0
| | | | | | | | | | Fixes this GCC warning. warning: missing initializer for member 'statevar_element::array_indexed'
* | mesa: bump version to 7.10Vinson Lee2010-09-171-3/+3
|/
* glsl2: Add flags to enable variable index loweringIan Romanick2010-09-173-0/+30
|
* dri/nv10: Fix the CLAMP texture wrap mode.Francisco Jerez2010-09-171-2/+1
|
* meta: Don't bind the created texture object in init_temp_texture().Francisco Jerez2010-09-161-1/+0
| | | | | | | | | | | This function is executed outside _mesa_meta_begin/end(), that means that e.g. _mesa_meta_Bitmap() clobbers the texturing state because it changes the currently active texture object. There's no need to bind the new texture when it's created, it's done again later anyway (from setup_drawpix/copypix_texture()). Signed-off-by: Brian Paul <[email protected]>
* mesa: include mfeatures.h in formats.cBrian Paul2010-09-161-0/+1
| | | | | Otherwise, FEATURE_EXT_texture_sRGB was undefined. This is (part of?) the fix for fd.o bug 30177.
* dri/nouveau: Cleanup references to the old FBOs on glMakeCurrent().Francisco Jerez2010-09-161-16/+8
|
* dri/nouveau: Don't reemit the BO state in nouveau_state_emit().Francisco Jerez2010-09-162-5/+3
|
* dri/nouveau: Don't request a fake front unnecessarily.Francisco Jerez2010-09-165-17/+32
|
* dri/nouveau: Fix glRenderbufferStorage with DEPTH_COMPONENT as internal format.Francisco Jerez2010-09-161-0/+1
|
* dri/nouveau: Add some more extensions.Francisco Jerez2010-09-163-0/+4
|
* dri/nouveau: Update nouveau_class.h.Francisco Jerez2010-09-161-20/+20
|
* dri/nv04: Fix provoking vertex.Francisco Jerez2010-09-161-2/+2
|
* dri/nv04: Fix maximum texture size.Francisco Jerez2010-09-161-0/+1
|
* dri/nv04: Fix up color mask.Francisco Jerez2010-09-161-1/+5
|
* dri/nv04: Align SIFM transfer dimensions.Francisco Jerez2010-09-161-1/+1
|
* dri/nv04: Mipmapping fixes.Francisco Jerez2010-09-162-15/+21
|
* dri/nv04: Fix PGRAPH_ERRORs when running OA.Francisco Jerez2010-09-161-1/+5
|
* dri/nv04: Enable eng3dm for A8/L8 textures.Andrew Randrianasulu2010-09-161-4/+16
| | | | Signed-off-by: Francisco Jerez <[email protected]>
* dri/nv04: Don't expose ARB_texture_env_combine/dot3.Andrew Randrianasulu2010-09-163-2/+4
| | | | Signed-off-by: Francisco Jerez <[email protected]>
* mesa: Update ES APIspec.xml.Chia-I Wu2010-09-161-9/+5
| | | | | | Enable some extensions now that the needed tokens are defined in GLES/glext.h and GLES2/glext.h. Update the prototype of MultiDrawArrays now that the prototype of _mesa_MultiDrawArraysEXT has been updated.
* mesa/st: Silence uninitialized variable warning.Vinson Lee2010-09-151-1/+4
|
* glsl2: fix signed/unsigned comparison warningBrian Paul2010-09-151-2/+2
|
* r600c: fix buffer height setting in dri2 caseAndre Maasikas2010-09-152-9/+46
| | | | | | | fbHeight is 0 in this case uncovered by changes in b0bc026c and should fix kernel rejecting command streams after that commit
* mesa: Include missing header in program.h.Vinson Lee2010-09-141-0/+1
| | | | Include compiler.h for ASSERT symbol.
* r600c: fix setting negative values to bitfields7.9-branchpointAndre Maasikas2010-09-141-1/+1
| | | | | | | | | when setting negative integers to bitfields we could overwrite other parts of it. So mask the value to be written correctly. This is used quite often in the driver - hope it doesnt affect performace or uncover behaviour relied before... fixes strange effects when setting negative lodbias on evergreen
* mesa: update to version 64 of GL/glext.hBrian Paul2010-09-144-9/+9
| | | | | | A number of other files had to be updated as well because const qualifiers were added to the glMultiDrawArrays() function. Also, GL_FIXED is now defined in glext.h.
* mesa: move, redefine MESA_GEOMETRY_PROGRAMBrian Paul2010-09-142-9/+15
|
* mesa: Remove unnecessary FEATURE tests.Chia-I Wu2010-09-142-18/+0
| | | | | Remove all FEATURE tests in mesa/drivers/common/. They are not needed and the code looks better without them.
* mesa: Less FEATURE_ARB_sync tests.Chia-I Wu2010-09-145-25/+60
| | | | | Add dummy static inline definitions to syncobj.h when FEATURE_ARB_sync is 0, and remove most FEATURE_ARB_sync tests.
* mesa: Remove unused _MESA_INIT_*_FUNCTIONS.Chia-I Wu2010-09-1411-90/+0
| | | | | They were intended to be used to build OpenGL ES only DRI drivers, but that never happened.
* mesa/st: ask GLSL to not emit noise since we have a dummy implementationLuca Barbieri2010-09-141-0/+2
| | | | | | | Note, BTW, that the Gallium implementation returns 0.5, which seems to violate the GLSL spec, where it should return 0.0 instead. Not sure whether changing it to 0 is correct or not.
* mesa/st: set compiler options based on Gallium shader capsLuca Barbieri2010-09-141-0/+9
| | | | | | | | This turns on if conversion and unlimited loop unrolling if control flow is not supported. NOTE: this will change the behavior of r300g and any other driver that doesn't advertise control flow
* gallium: introduce get_shader_param (ALL DRIVERS CHANGED) (v3)Luca Barbieri2010-09-141-24/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Changes in v3: - Also change trace, which I forgot about Changes in v2: - No longer adds tessellation shaders Currently each shader cap has FS and VS versions. However, we want a version of them for geometry, tessellation control, and tessellation evaluation shaders, and want to be able to easily query a given cap type for a given shader stage. Since having 5 duplicates of each shader cap is unmanageable, add a new get_shader_param function that takes both a shader cap from a new enum and a shader stage. Drivers with non-unified shaders will first switch on the shader and, within each case, switch on the cap. Drivers with unified shaders instead first check whether the shader is supported, and then switch on the cap. MAX_CONST_BUFFERS is now per-stage. The geometry shader cap is removed in favor of checking whether the limit of geometry shader instructions is greater than 0, which is also used for tessellation shaders. WARNING: all drivers changed and compiled but only nvfx tested
* glsl: introduce ir_binop_all_equal and ir_binop_any_equal, allow vector cmpsLuca Barbieri2010-09-131-1/+7
| | | | | | | | | | | | | | | | | Currently GLSL IR forbids any vector comparisons, and defines "ir_binop_equal" and "ir_binop_nequal" to compare all elements and give a single bool. This is highly unintuitive and prevents generation of optimal Mesa IR. Hence, first rename "ir_binop_equal" to "ir_binop_all_equal" and "ir_binop_nequal" to "ir_binop_any_nequal". Second, readd "ir_binop_equal" and "ir_binop_nequal" with the same semantics as less, lequal, etc. Third, allow all comparisons to acts on vectors. Signed-off-by: Ian Romanick <[email protected]>
* i965: Request that returns be lowered in shader mainIan Romanick2010-09-131-0/+1
| | | | Fixes piglit tests glsl-vs-main-return and glsl-fs-main-return.
* glsl: call ir_lower_jumps according to compiler optionsLuca Barbieri2010-09-131-0/+2
|
* r600c: const buffer sizes must be a multiple of 16 constsAlex Deucher2010-09-133-29/+21
| | | | This applies to r6xx/r7xx/evergreen