Michal Krol
eeb5202e5d
slang: Invoke the preprocessor from withing the slang compiler.
This allows us to validate the shader version number.
pirms 16 gadiem
Michal Krol
0f302b60fd
glsl/pp: Support GL_ARB_draw_buffers and GL_ARB_texture_rectangle.
pirms 16 gadiem
Michal Krol
cd26ccf6fe
grammar: Adapt to pp interface change.
pirms 16 gadiem
Michal Krol
169aead1b5
glsl/apps: Adapt to pp interface change.
pirms 16 gadiem
Michal Krol
a67f32289a
glsl/pp: Add a dictionary to a context.
pirms 16 gadiem
Michal Krol
9f273f1098
Merge commit 'origin/master' into glsl-pp-rework-2
pirms 16 gadiem
Cooper Yuan
aad0deee4b
g3dvl: update tgsi_opcode in order to build g3dvl library
pirms 16 gadiem
Keith Whitwell
66a7eedaa2
tgsi: handle some src/dst aliasing in tgsi_sse2.c
Src/Dst aliasing (aka SOA dependencies) requires some care to ensure
intermediate results do not overwrite yet-to-be read source registers.
This change ensures that MOV/SWZ handle this correctly, which is poor but
no worse than the current tgsi_exec.c path. Remove the fallback as there
is nothing to be gained correctness-wise between the two implementations now.
Fixing this properly looks like a bit of work in this code, but might be
easily achieved by sending destination writes to temporary storage.
pirms 16 gadiem
José Fonseca
86226d5ea1
llvmpipe: Compute derivatives.
pirms 16 gadiem
José Fonseca
4b32dd3007
llvmpipe: Remove dead references to pipe_winsys.
pirms 16 gadiem
José Fonseca
5e13e987da
llvmpipe: Use const keyword for input array arguments.
pirms 16 gadiem
José Fonseca
faec23387e
llvmpipe: Delay storing into the dst register to prevent clobbering the src registers.
How I'm thankful for regular expressions -- just a couple of them were
all that was needed to do this otherwise tiresome and bug prone change.
pirms 16 gadiem
José Fonseca
873773ee2b
llvmpipe: Translate more TGSI opcodes.
Basically cover all low hanging fruit, and mark the still missing opcodes
as "fixme" or deprecated.
pirms 16 gadiem
José Fonseca
00dd0156e0
llvmpipe: Add a few more common arithmetic functions.
We are relying on SSE4.1 for round/trunc/ceil/floor. We'll need to
eventually find alternatives for the rest of the world.
pirms 16 gadiem
José Fonseca
d7aa114e16
llvmpipe: Rename function to free up lp_build_trunc to the usual arithmetic meaning.
pirms 16 gadiem
Keith Whitwell
18e5f1cee4
tgsi: implement saturation
Fix recent performance regression.
pirms 16 gadiem
Keith Whitwell
055fe5768c
tgsi: add missing implementation of constant decl change
pirms 16 gadiem
Cooper Yuan
bffa18624d
r300g: delete unused flag due to commit: 09b566e1610
pirms 16 gadiem
Keith Whitwell
11f41f54cf
ureg: add a mechanism to get the built tokens rather than a full shader
Previously ureg would always call the driver's create-shader function. This
allows the caller the opportunity to hold onto the tokens if it needs to
reuse them, eg. to create an internal draw shader.
pirms 16 gadiem
Keith Whitwell
c23894295b
ureg: add generic emitters for tex and branch instructions
Couldn't previously emit these except by calling the opcode-specific helper.
pirms 16 gadiem
Keith Whitwell
ae4704eabc
tgsi/ureg: give ureg_DECL_constant an explicit index parameter
Avoid the need to emit all constant declarations in order. Makes
referring to a specific constant in the constant buffer much easier.
pirms 16 gadiem
Keith Whitwell
09b566e161
mesa: remove unused SATURATE_PLUS_MINUS_ONE flag
Never set in mesa. Remove from tgsi translation as well.
pirms 16 gadiem
Keith Whitwell
6d8dbd3d1e
tgsi/ureg: VS inputs don't have any semantic tags, just an index
Fix ureg_DECL_vs_input to reflect this and fix up all callers.
pirms 16 gadiem
Keith Whitwell
149945c432
tgsi: free tokens on error
pirms 16 gadiem
Keith Whitwell
e90fb86ac3
tgsi: sanity check ureg programs
pirms 16 gadiem
Keith Whitwell
983b261e6d
tgsi: add const qualifier
pirms 16 gadiem
Nicolai Hähnle
3cb30e55e4
r300g: There is no such thing as "texture stride"
Individual texture images have a stride, but textures as a whole do not.
There are still pieces of code which are confused about this, but the core of
the confusion is hopefully gone.
Signed-off-by: Nicolai Hähnle <nhaehnle@gmail.com>
pirms 16 gadiem
Eric Anholt
57d16c4cc3
i965: Move OPCODE_DDX/DDY to brw_wm_emit.c and make it actually work.
Previously, it was trying to mess around with the varying's
WM setup data to produce a result. Along with not actually working when
passed a varying, this wouldn't work if you did dFd[xy]() on a temporary.
Instead, just calculate the derivative using the neighbors in the subspan.
pirms 16 gadiem
Andre Maasikas
a79eecb913
r600: fix texcoords from constants
with some minor updates from Richard.
pirms 16 gadiem
Alex Deucher
08b7d32140
Revert "r600: support tex coords from constants"
This reverts commit 4099bb7614
.
Tex coord src has to be a GPR.
pirms 16 gadiem
Cooper Yuan
622b31925b
r300g: only allocate one BO for vertex buffers, default size is 64*1024
it can fix redbook/sceneflat, scene, scenebamb, surface, nurbs and so on
pirms 16 gadiem
Alex Deucher
4099bb7614
r600: support tex coords from constants
Fixes neverball among other things.
pirms 16 gadiem
Andre Maasikas
4108ed7e80
r600: enable caching of vertex programs
pirms 16 gadiem
José Fonseca
672c5f52d1
llvmpipe: set dirty_render_cache in llvmpipe_clear()
Based on Brian's softpipe change on
commit 988db64119
. We don't use the tile
cache for zsbuf though, only for color buffers.
pirms 16 gadiem
José Fonseca
1fc4100225
llvmpipe: Update status in README and TODO/FIXME comments throughout the code.
pirms 16 gadiem
Eric Anholt
7c0152fbae
i965: Enable loops in the VS.
Passes piglit glsl-vs-loop testcase.
Bug #20171
pirms 16 gadiem
Brian Paul
0ef5b62787
mesa: nicer vertex setup
pirms 16 gadiem
Brian Paul
4781c1f459
st/mesa: use st_context() helper
pirms 16 gadiem
Brian Paul
6bc36f29c7
softpipe: remove no-op softpipe_init_texture_funcs() function
pirms 16 gadiem
Brian Paul
209031701a
softpipe: remove unused #includes, move comment
pirms 16 gadiem
Brian Paul
de059d35c3
util: remove unneeded #includes
pirms 16 gadiem
Brian Paul
afcaa45a94
softpipe: reformatting, clean-ups, comments
pirms 16 gadiem
Brian Paul
759696defb
util: minor clean-ups, reformatting
pirms 16 gadiem
Brian Paul
71b3ccc4b0
softpipe: remove unneeded #includes
pirms 16 gadiem
Brian Paul
d9dc4cb0e4
Merge branch 'mesa_7_6_branch'
pirms 16 gadiem
Zack Rusin
8c37a4c8fd
st/xorg: rename ctx to pipe to match every other gallium state tracker
plus it avoids the "ctx->ctx->" syntax
pirms 16 gadiem
Brian Paul
4b1cbfcbe6
Merge branch 'mesa_7_5_branch' into mesa_7_6_branch
pirms 16 gadiem
Brian Paul
9e6ae75cc8
intel: disable intel_stencil_drawpixels() for now
It doesn't work reliably even when all the prerequisite checks are made.
pirms 16 gadiem
Zack Rusin
85a716bf62
st/xorg: temporarily disablie copies
pirms 16 gadiem
Zack Rusin
feb74e7753
st/xorg: implement pipelines surface/texture copies
pirms 16 gadiem