Commit Graph

39031 Commits

Author SHA1 Message Date
Brian Paul 3085efabb1 llvmpipe: s/boolean/unsigned/ in bitfield to silence warning
Using non-int types for bitfields is a gcc extension.
The size of the struct is not effected by this change.
2010-09-15 12:49:13 -06:00
Brian Paul 29289b43b7 llvmpipe: cast to silence warning 2010-09-15 12:48:29 -06:00
Brian Paul 7545514fb6 glsl2: fix signed/unsigned comparison warning 2010-09-15 12:47:32 -06:00
John Doe e0b6df4fcc r600g: misc cleanup
Avoid using r600_screen structure to get ptr to radeon
winsys structure.

Signed-off-by: Jerome Glisse <jglisse@redhat.com>
2010-09-15 11:48:34 -04:00
Christoph Bumiller 26fe16a99b Merge remote branch 'origin/nv50-compiler'
Conflicts:
	src/gallium/drivers/nouveau/nouveau_class.h
	src/gallium/drivers/nv50/nv50_screen.c
2010-09-15 17:34:40 +02:00
Keith Whitwell 59ca1ae84b llvmpipe: return zero from floor_pot(zero) 2010-09-15 16:28:49 +01:00
Christoph Bumiller 84d170bbce nv50: put low limit on REG_ALLOC_TEMP and FP_RESULT_COUNT 2010-09-15 15:35:14 +02:00
Christoph Bumiller c46e7a05e5 nv50: improve and fix modifier folding optimization
Execute before folding loads, because we don't check if it's legal
in lower_mods.
Ensure that a value's insn pointer is updated when transferring it
to a different instruction.
2010-09-15 15:35:14 +02:00
Christoph Bumiller 16d8f5fee5 nv50: consider address register in reload elimination 2010-09-15 15:35:14 +02:00
Keith Whitwell be2fb11f10 llvmpipe: remove duplicate code
Bad rebase presumably.
2010-09-15 14:30:01 +01:00
Keith Whitwell cc2ed02c0a llvmpipe: brackets around macro arg 2010-09-15 14:30:01 +01:00
Chia-I Wu e3c46cf586 glapi: Fix ES build errors again.
This fixes an error in GLAPI ES.  My build is ok with or without this
patch, and the error affects others' setups.

[Patch from Francesco Marella]
2010-09-15 21:19:44 +08:00
Vinson Lee efab1c8642 r600g: Silence unused variable warning.
The code that uses dname is currently ifdef'ed out.
2010-09-15 06:14:02 -07:00
Vinson Lee 1ce4f86803 r600g: Silence uninitialized variable warning. 2010-09-15 06:09:28 -07:00
Vinson Lee a712e193a3 r600g: Silence uninitialized variable warning. 2010-09-15 05:52:16 -07:00
Vinson Lee 76c0576101 r600g: Silence uninitialized variable warning. 2010-09-15 05:46:34 -07:00
Vinson Lee 66a146dd05 nvfx: Silence uninitialized variable warnings. 2010-09-15 05:43:50 -07:00
Vinson Lee 9aee4be5e0 r600g: Silence uninitialized variable warning. 2010-09-15 05:34:29 -07:00
Vinson Lee 7290c5982c r600g: Silence uninitialized variable warning. 2010-09-15 05:31:31 -07:00
Vinson Lee f20f2cc330 glsl: Fix 'format not a string literal and no format arguments' warning.
Fix the following GCC warning.
loop_controls.cpp: In function 'int calculate_iterations(ir_rvalue*, ir_rvalue*, ir_rvalue*, ir_expression_operation)':
loop_controls.cpp:88: warning: format not a string literal and no format arguments
2010-09-15 05:17:57 -07:00
Dave Airlie 09ef8e9283 r300g: fix buffer reuse issue caused by previous commit
caused by 0b9eb5c9bb

test run glxgears, resize.
2010-09-15 13:26:04 +02:00
Chia-I Wu cad87ebc3a glapi: Fix build errors for ES.
The latest glext.h defines GL_FIXED.  Test GL_OES_fixed_point instead to
decide whether to define GLfixed and GLclampx.

This fixes fdo bug #30205.
2010-09-15 17:45:26 +08:00
Andre Maasikas 84f7b5d974 r600c: fix buffer height setting in dri2 case
fbHeight is 0 in this case

uncovered by changes in b0bc026c and should fix kernel rejecting command
streams after that commit
2010-09-15 11:32:18 +03:00
Marek Olšák 0b9eb5c9bb r300g: prevent creating multiple winsys BOs for the same handle
This fixes a DRM deadlock in the cubestorm xscreensaver, because somehow
there must not be 2 different BOs relocated in one CS if both BOs back
the same handle. I was told it is impossible to happen, but apparently
it is not, or there is something else wrong.
2010-09-15 04:29:18 +02:00
Vinson Lee fd7f70af48 mesa: Include missing header in program.h.
Include compiler.h for ASSERT symbol.
2010-09-14 17:54:46 -07:00
Vinson Lee 6a8a506158 r600g: Remove unnecessary headers. 2010-09-14 17:42:47 -07:00
Luca Barbieri ccb5e65bc9 auxiliary: fix unintended fallthrough 2010-09-14 21:45:01 +02:00
Vinson Lee cdf74a1ab9 llvmpipe: Remove unnecessary header. 2010-09-14 14:23:17 -07:00
Brian Paul 4cd751bcc4 glx: add const qualifiers to __indirect_glMultiDrawArraysEXT() 2010-09-14 11:01:03 -06:00
Andre Maasikas b0bc026c12 r600c: fix setting negative values to bitfields
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
2010-09-14 19:00:35 +03:00
Brian Paul 79ab394cd2 mesa: upgrade wglext.h to version 22 2010-09-14 09:40:23 -06:00
Brian Paul b106e6261a mesa: upgrade glxext.h to version 32 2010-09-14 09:39:44 -06:00
Brian Paul 7993832c12 mesa: update to version 64 of GL/glext.h
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.
2010-09-14 09:37:37 -06:00
Brian Paul 83f5f50f2f mesa: move, redefine MESA_GEOMETRY_PROGRAM 2010-09-14 09:16:40 -06:00
Brian Paul 1c0644e9da glsl2: add case for ir_unop_noise
Silences a compiler warning.  Still need to add some assertions
for this case.
2010-09-14 09:15:20 -06:00
Brian Paul 2b04ead569 glsl2: fix comments 2010-09-14 09:05:46 -06:00
Chia-I Wu 9476efe77f mesa: Remove unnecessary FEATURE tests.
Remove all FEATURE tests in mesa/drivers/common/.  They are not needed
and the code looks better without them.
2010-09-14 15:49:58 +08:00
Chia-I Wu 10ff2646a4 mesa: Less FEATURE_ARB_sync tests.
Add dummy static inline definitions to syncobj.h when FEATURE_ARB_sync
is 0, and remove most FEATURE_ARB_sync tests.
2010-09-14 15:49:47 +08:00
Chia-I Wu db6273e0dd mesa: Remove unused _MESA_INIT_*_FUNCTIONS.
They were intended to be used to build OpenGL ES only DRI drivers, but
that never happened.
2010-09-14 15:49:43 +08:00
Vinson Lee 1c6992b873 gallivm: Remove unnecessary header. 2010-09-14 00:42:20 -07:00
Vinson Lee aeb83928fd llvmpipe: Initialize variable for potentially unhandled switch case. 2010-09-14 00:17:13 -07:00
Vinson Lee 45ee8463a2 i965g: Fix 'control reaches end of non-void function' warning.
Fixes the following GCC warning.
brw_screen.c: In function 'brw_get_shader_param':
brw_screen.c:241: warning: control reaches end of non-void function
2010-09-14 00:08:45 -07:00
Vinson Lee 706380cf7d i915g: Fix 'control reaches end of non-void function' warning.
Fixes the following GCC warning.
i915_screen.c: In function 'i915_get_shader_param':
i915_screen.c:184: warning: control reaches end of non-void function
2010-09-13 23:58:42 -07:00
Vinson Lee d4d48c0579 i915: Fix "implicit declaration of function 'draw_get_shader_param'" warning.
Fixes the following GCC warning.
i915_screen.c: In function 'i915_get_shader_param':
i915_screen.c:147: warning: implicit declaration of function 'draw_get_shader_param'
2010-09-13 23:42:35 -07:00
Vinson Lee c5867acb0d identity: Fix 'assignment from incompatible pointer type' warning.
This is a follow-up to commit a508d2dddc.

Fixes the following GCC warning.
id_screen.c: In function 'identity_screen_create':
id_screen.c:317: warning: assignment from incompatible pointer type
2010-09-13 23:23:34 -07:00
Vinson Lee 4f2f02b7d6 rbug: Fix 'assignment from incompatible pointer type' warning.
This is a follow-up to commit a508d2dddc.

Fixes the following GCC warning.
rbug_screen.c: In function 'rbug_screen_create':
rbug_screen.c:331: warning: assignment from incompatible pointer type
2010-09-13 23:02:37 -07:00
Luca Barbieri fbc7c9b7a9 mesa/st: ask GLSL to not emit noise since we have a dummy implementation
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.
2010-09-14 06:08:03 +02:00
Luca Barbieri b37459388b mesa/st: set compiler options based on Gallium shader caps
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
2010-09-14 06:08:03 +02:00
Luca Barbieri a508d2dddc gallium: introduce get_shader_param (ALL DRIVERS CHANGED) (v3)
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
2010-09-14 06:07:41 +02:00
Ian Romanick 309cd4115b glsl2: Port equal() and notEqual() to ir_unop_all_equal and ir_unop_any_nequal 2010-09-13 17:53:32 -07:00