Eric Anholt [Mon, 16 Aug 2010 01:58:58 +0000 (18:58 -0700)]
i965: Start building the codegen visitor.
This can successfully emit a real program that generates magenta now.
Eric Anholt [Thu, 26 Aug 2010 19:12:00 +0000 (12:12 -0700)]
i965: Start building direct GLSL2 IR to 965 assembly codegen.
Our channel-expressions and vector-splitting changes now happen into a
private copy of the IR that we maintain for ourselves. Uniform
assignment still happens by the core, so we continue using Mesa IR
generation not just for swrast fallbacks but also for uniform values
(since there's no storage for their contents other than
shader_program->FragmentProgram->Parameters->ParameterValues). And
most importantly, at the moment no actual codegen is hooked up other
than emitting our favorite color to the framebuffer.
Eric Anholt [Thu, 26 Aug 2010 19:02:26 +0000 (12:02 -0700)]
i965: Add new pass to split vectors into scalar variables
Combined with the previous pass, this lets other optimization passes
do their work thanks to ir_tree_grafting. Still have regression in
instruction count with INTEL_NEW_FS, but register count is even
better.
Eric Anholt [Fri, 13 Aug 2010 09:20:40 +0000 (02:20 -0700)]
i965: Add a pass for the FS to reduce vector expressions down to scalar.
This is a step towards implementing a GLSL IR backend for the 965
fragment shader. Because it has downsides with the current codegen,
it is hidden under the environment variable INTEL_NEW_FS.
This results in an increase in instruction count at the moment (1444
-> 1752 for glsl-fs-raytrace, 345 -> 359 on my demo), because dot
products are turned into a series of multiplies and adds instead of a
custom expansion of MULs and MACs, and by not splitting the variable
types up we don't get tree grafting and thus there are extra moves of
temporary storage. However, register count drops for the non-GLSL
path (64 -> 56 on my demo shader) because the register allocator sees
all the sub-operations.
Eric Anholt [Wed, 11 Aug 2010 03:39:06 +0000 (20:39 -0700)]
i965: Start building 965 FS backend.
Brian Paul [Thu, 26 Aug 2010 17:45:25 +0000 (11:45 -0600)]
llvmpipe: fix PIPE_CAP_MAX_VERTEX_TEXTURE_UNITS query
Fixes crashes in glean glsl1 and demos/src/glsl/vert-tex.
See comments for details.
José Fonseca [Thu, 26 Aug 2010 05:52:12 +0000 (06:52 +0100)]
graw: Add copyright headers to the interfaces.
Eric Anholt [Thu, 26 Aug 2010 18:23:09 +0000 (11:23 -0700)]
ir_to_mesa: Don't assume that an ir_dereference_array is of a variable.
Fixes:
glsl-array-bounds-02 (software)
glsl-array-bounds-04
glsl-array-bounds-06 (software)
glsl-array-bounds-08
Eric Anholt [Thu, 26 Aug 2010 17:42:47 +0000 (10:42 -0700)]
glsl: Add a quick hack to constant folding to reduce duplicated work.
Reduces runtime of glsl-max-varyings 92% on my system.
Vinson Lee [Thu, 26 Aug 2010 17:38:28 +0000 (10:38 -0700)]
st/mesa: Remove unnecessary header.
José Fonseca [Thu, 26 Aug 2010 17:28:29 +0000 (18:28 +0100)]
scons: Fix inverted logic.
Brian Paul [Thu, 26 Aug 2010 17:24:22 +0000 (11:24 -0600)]
docs: update news.html with 7.8.2 release info
Brian Paul [Thu, 26 Aug 2010 17:20:31 +0000 (11:20 -0600)]
docs: remove links to tungstengraphics.com, and misc updates
Brian Paul [Thu, 26 Aug 2010 17:18:06 +0000 (11:18 -0600)]
docs: remove link to old memory.html page
José Fonseca [Thu, 26 Aug 2010 17:19:57 +0000 (18:19 +0100)]
scons: Add glsl_symbol_table.cpp
Eric Anholt [Thu, 26 Aug 2010 15:47:24 +0000 (08:47 -0700)]
i965: Add support for destination RelAddr writes in the VS.
Fixes: glsl-vs-varying-array
Eric Anholt [Thu, 26 Aug 2010 16:10:19 +0000 (09:10 -0700)]
i965: Fix the test for variable indexing of shader inputs.
Shader inputs appear in source registers, not dst registers. Catches
unsupported shaders in glsl-fs-varying-array and Humus
RaytracedShadows.
Ian Romanick [Thu, 26 Aug 2010 16:24:58 +0000 (09:24 -0700)]
glsl2: Remove a couple FINISHME comments that have already been resolved
Kenneth Graunke [Mon, 23 Aug 2010 21:52:06 +0000 (14:52 -0700)]
glsl: Move built-ins to live beyond the global scope.
Per the GLSL 1.20 specification (presumably a clarification of 1.10).
Also, when creating user functions, make a new ir_function that shadows the
built-in ir_function, rather than adding new signatures. User functions
are supposed to hide built-ins, not overload them.
Fixes piglit tests redeclaration-{04, 12, 14}.vert.
Kenneth Graunke [Sat, 21 Aug 2010 03:04:39 +0000 (20:04 -0700)]
glsl: Move is_built_in flag from ir_function_signature to ir_function.
Also rename it to "is_builtin" for consistency.
Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Kenneth Graunke [Tue, 24 Aug 2010 08:45:49 +0000 (01:45 -0700)]
glsl: Refactor variable declaration handling.
Moving the check for an earlier variable declaration helps cleanly
separate out the re-declaration vs. new declaration code a bit. With
that in place, conflicts between variable names and structure types or
function names aren't caught by the earlier "redeclaration" error
message, so check the return type on glsl_symbol_table::add_variable
and issue an error there. If one occurs, don't emit the initializer.
Fixes redeclaration-01.vert and redeclaration-09.vert.
Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Kenneth Graunke [Thu, 26 Aug 2010 00:10:16 +0000 (17:10 -0700)]
glsl: Don't add overloads to existing structure constructors.
Instead, make a new ir_function and try to add it to the symbol table.
Fixes piglit test redeclaration-08.vert.
Kenneth Graunke [Wed, 25 Aug 2010 23:37:46 +0000 (16:37 -0700)]
glsl: Remove name_declared_this_scope check when adding functions.
Instead, rely on the symbol table's rules.
Fixes redeclaration-02.vert.
Kenneth Graunke [Sun, 22 Aug 2010 03:23:18 +0000 (20:23 -0700)]
glsl: Use a single shared namespace in the symbol table.
As of 1.20, variable names, function names, and structure type names all
share a single namespace, and should conflict with one another in the
same scope, or hide each other in nested scopes.
However, in 1.10, variables and functions can share the same name in the
same scope. Structure types, however, conflict with/hide both.
Fixes piglit tests redeclaration-06.vert, redeclaration-11.vert,
redeclaration-19.vert, and struct-05.vert.
Brian Paul [Thu, 26 Aug 2010 15:20:18 +0000 (09:20 -0600)]
st/mesa: add missing packed depth/stencil formats in st_format_datatype()
Fixes llvmpipe regression from one of the prev commits.
Brian Paul [Thu, 26 Aug 2010 14:59:43 +0000 (08:59 -0600)]
mesa: fix mixed-up function call name
Nick Bowler [Thu, 26 Aug 2010 14:26:21 +0000 (07:26 -0700)]
mesa: Identify packed depth/stencil buffers using the Format field.
Intel sometimes uses packed depth/stencil buffers even when only a depth
buffer or only a stencil buffer was requested. Common code currently
uses the _BaseFormat field to determine whether a depth/stencil wrapper
is necessary. But unless the user explicitly requested a packed
depth/stencil buffer, the _BaseFormat field does not encode this
information, and the required wrappers are not created.
The problem was introduced by commit
45e76d2665b38b ("mesa: remove a
bunch of gl_renderbuffer fields"), which killed off the _ActualFormat
field upon which the decision to create a wrapper used to be made. This
patch changes the logic to use the Format field instead, which is more
like the old code.
Fixes fdo bug 27590.
Signed-off-by: Nick Bowler <nbowler@draconx.ca>
Signed-off-by: Brian Paul <brianp@vmware.com>
Nick Bowler [Wed, 25 Aug 2010 13:14:42 +0000 (06:14 -0700)]
intel: Merge identical cases in switch statement.
Signed-off-by: Nick Bowler <nbowler@draconx.ca>
Signed-off-by: Brian Paul <brianp@vmware.com>
Andre Maasikas [Thu, 26 Aug 2010 12:22:21 +0000 (15:22 +0300)]
r600: fix vertex buffer size calculation
when we dont know max_index we cannot calculate vb size from count
anymore - just use the bo size.
Also added an assert to remind that we dont handle GL_INT GL_DOUBLE
upload when we dont' know max_index - will fix later
José Fonseca [Thu, 26 Aug 2010 10:37:42 +0000 (11:37 +0100)]
graw: Undo late loading of graw drivers.
Keith prefers a clean separation between graw applications and
implementations, where apps do not link libgallium.a but instead
get all functionality they need via graw interface.
Although this is not incompatible with late loading of graw drivers, it
it would make it very hard to maintain, as wrappers for every utility
symbol exposed in graw would have to be written or generated somehow.
Chia-I Wu [Wed, 25 Aug 2010 18:15:22 +0000 (02:15 +0800)]
st/mesa: Fix glEGLImageTargetTexture2DOES.
stObj->pt should be set in st_bind_surface, just as in st_TexImage. On
the other hand, st_TexImage should unreference stObj->pt. It also needs
to initialize the texture image again as _mesa_clear_texture_object
clears the image.
Chia-I Wu [Wed, 25 Aug 2010 17:49:18 +0000 (01:49 +0800)]
st/egl: Add support for EGL_MESA_image_drm.
Chia-I Wu [Thu, 26 Aug 2010 07:10:14 +0000 (01:10 -0600)]
st/egl: Add support for EGL_KHR_surfaceless_*.
Chia-I Wu [Wed, 25 Aug 2010 16:51:28 +0000 (00:51 +0800)]
st/mesa: Add support for surfaceless current contexts.
A surfaceless current context is a context that is made current without
draw and read framebuffers. Such contexts can only render to FBOs.
Chia-I Wu [Wed, 25 Aug 2010 16:38:59 +0000 (00:38 +0800)]
st/egl: Make KMS support optional in KMS backend.
It should be called DRM backend now.
Vinson Lee [Thu, 26 Aug 2010 08:38:23 +0000 (01:38 -0700)]
r300g: Include missing header in r300_texture_desc.h.
Include p_format.h for enum pipe_format symbol.
Fixes r300g build.
Vinson Lee [Thu, 26 Aug 2010 08:30:07 +0000 (01:30 -0700)]
gallium: Clean up header file inclusion in p_defines.h.
Remove p_format.h.
Include p_compiler.h for boolean and uint64_t symbols.
Vinson Lee [Thu, 26 Aug 2010 08:21:10 +0000 (01:21 -0700)]
gallium: Clean up header file inclusion in p_context.h.
Remove p_state.h.
Include p_compiler.h for boolean symbol.
Add needed forward declarations after removing p_state.h.
Vinson Lee [Thu, 26 Aug 2010 08:14:28 +0000 (01:14 -0700)]
graw: Include missing header in graw_dl.h.
Include p_state.h for pipe_shader_state symbol.
Vinson Lee [Thu, 26 Aug 2010 08:08:30 +0000 (01:08 -0700)]
util: Include missing header in u_simple_shaders.c.
Include p_state.h for PIPE_MAX_COLOR_BUFS symbol.
Vinson Lee [Thu, 26 Aug 2010 07:34:30 +0000 (00:34 -0700)]
tgsi: Include missing header in tgsi_sse2.h.
Include p_compiler.h for boolean symbol.
Clean up forward declarations.
Vinson Lee [Thu, 26 Aug 2010 07:29:58 +0000 (00:29 -0700)]
rtasm: Include missing header in rtasm_x86sse.h.
Include p_compiler.h for stdint.h uint*_t symbols.
Vinson Lee [Thu, 26 Aug 2010 07:22:19 +0000 (00:22 -0700)]
pipebuffer: Clean up header file inclusion in pb_bufmgr.h.
Remove p_compiler.h and p_defines.h.
Include pb_buffer.h for pb_size symbol.
Eric Anholt [Thu, 26 Aug 2010 07:07:58 +0000 (00:07 -0700)]
glsl2: Move ir_expression_flattening to using the rvalue visitor class.
The previous implementation was missing handling of some rvalues, such
as "if" conditions, leading to glsl-mat-int-from-ctor-* not getting
caught.
Eric Anholt [Thu, 26 Aug 2010 06:27:56 +0000 (23:27 -0700)]
glsl: Don't consider things with a type containing a sampler as an lvalue.
We had ad-hoc handled some common cases by flagging sampler-typed
variables as read_only, and rejected initializers of samplers.
However, people could sneak them in in all sorts of surprising ways,
like using whole-array or structure assignment.
Fixes:
glslparsertest/glsl2/sampler-01.frag
glslparsertest/glsl2/sampler-03.frag
glslparsertest/glsl2/sampler-04.frag
glslparsertest/glsl2/sampler-06.frag
Bug #27403.
Eric Anholt [Thu, 26 Aug 2010 06:26:29 +0000 (23:26 -0700)]
mesa: Disable the debug spam for x86 CPU detection with a compile-time flag.
I don't know of any problems with CPU detection in years. Don't spam
the user that was just looking to enable assertions with this stuff.
Eric Anholt [Thu, 26 Aug 2010 06:24:50 +0000 (23:24 -0700)]
mesa: Move the x86 detection debug messages next to the detection.
Eric Anholt [Thu, 26 Aug 2010 06:14:45 +0000 (23:14 -0700)]
mesa: Don't warn when the desired result of s3tc lib available occurs.
Vinson Lee [Thu, 26 Aug 2010 06:37:27 +0000 (23:37 -0700)]
util: Include missing header in u_blit.h.
Include p_compiler.h for uint symbol.
Clean up forward declarations.
Vinson Lee [Thu, 26 Aug 2010 06:31:04 +0000 (23:31 -0700)]
util: Include missing header in u_bitmask.h.
Include p_compiler.h for boolean symbol.
Vinson Lee [Thu, 26 Aug 2010 06:04:39 +0000 (23:04 -0700)]
util: Include missing header in u_dirty_surfaces.h.
Include p_state.h for pipe_surface symbol.
Vinson Lee [Thu, 26 Aug 2010 05:55:15 +0000 (22:55 -0700)]
util: Add include guard in u_split_prim.h.
Vinson Lee [Thu, 26 Aug 2010 05:50:15 +0000 (22:50 -0700)]
util: Include missing headers in u_split_prim.h.
Include p_compiler.h for boolean symbol.
Include u_debug.h for assert symbol.
José Fonseca [Thu, 26 Aug 2010 05:47:24 +0000 (06:47 +0100)]
graw: Remove graw-null.
Pointless now that the graw tests can be built independently of any graw
implementation.
José Fonseca [Thu, 26 Aug 2010 05:44:02 +0000 (06:44 +0100)]
graw: Dynamically load graw libraries.
This allows to build multiple graws libs simultaneously and avoid
unnecessary rebuilds of the tests.
Also remove graw_util.c from inside the graw implementation -- it was
only being provided by one implementation, and graw tests were linking
against gallium anyway.
José Fonseca [Thu, 26 Aug 2010 05:40:49 +0000 (06:40 +0100)]
scons: Fix old script compatability logic.
Sconscript could be invoked twice if specified in the command line.
Vinson Lee [Thu, 26 Aug 2010 05:41:20 +0000 (22:41 -0700)]
util: Include missing headers in u_tile.h.
Include p_format.h for enum pipe_format symbol.
Include p_state.h for pipe_box symbol.
Vinson Lee [Thu, 26 Aug 2010 05:34:31 +0000 (22:34 -0700)]
util: Clean up header file inclusion in u_upload_mgr.h.
Remove p_defines.h.
Remove unnecessary forward declarations.
Add forward declaration for pipe_context.
Marek Olšák [Thu, 26 Aug 2010 01:28:47 +0000 (03:28 +0200)]
r300g: fix constant buffer upload once again for r3xx->r4xx
Vinson Lee [Thu, 26 Aug 2010 01:06:01 +0000 (18:06 -0700)]
r600: Remove unnecessary headers.
Vinson Lee [Thu, 26 Aug 2010 01:00:23 +0000 (18:00 -0700)]
r300: Remove unnecessary header.
Eric Anholt [Wed, 25 Aug 2010 23:38:37 +0000 (16:38 -0700)]
Revert "mesa: Don't add 1 to GL_ACTIVE_UNIFORM_MAX_LENGTH."
This reverts commit
001a7bfdfc8b3c8930d5ced21982dbdfb8cd35b3. I
hadn't found the section of the spec clarifying that the old behavior
was right. Reverting fixes the new version of the testcase, and the
Humus demos that could no longer find their uniforms.
Bug #29782
Bug #29783
Aras Pranckevicius [Wed, 25 Aug 2010 19:42:13 +0000 (22:42 +0300)]
glsl: fix crash with variable indexing into array in a struct
Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Eric Anholt [Wed, 25 Aug 2010 23:00:09 +0000 (16:00 -0700)]
i965: Fix detection of implicit MOVs to message regs in brw_optimize.c.
Texcoords in AmbientApertureLighting were getting trashed since the
move of math arguments to implied moves, due to the logic for
detecting ALU message reg writes overriding the logic for SEND
implicit message reg writes.
Marcin Slusarz [Mon, 23 Aug 2010 20:40:58 +0000 (22:40 +0200)]
nouveau: handle early initialization errors
handle very early errors in pipe_screen creation (failure of
nouveau_screen_init in nv50_screen_create)
Signed-off-by: Francisco Jerez <currojerez@riseup.net>
Jerome Glisse [Tue, 24 Aug 2010 21:46:31 +0000 (17:46 -0400)]
r600g: simplify states
Directly build PM4 packet, avoid using malloc (no states are
bigger than 128 dwords), remove unecessary informations,
remove pm4 building in favor of prebuild pm4 packet.
Signed-off-by: Jerome Glisse <jglisse@redhat.com>
Eric Anholt [Wed, 25 Aug 2010 04:45:40 +0000 (21:45 -0700)]
mesa: Remove now-unused _mesa_add_sampler().
We do the generation of "what sampler number within Parameters are we"
right in ir_to_mesa.cpp, instead of repeatedly walking the existing
list to find out.
Eric Anholt [Wed, 25 Aug 2010 04:43:07 +0000 (21:43 -0700)]
ir_to_mesa: Add support for samplers in structures.
Fixes:
glsl-fs-uniform-sampler-struct
glsl-fs-sampler-numbering-3
Bug #29690
Eric Anholt [Wed, 25 Aug 2010 04:02:22 +0000 (21:02 -0700)]
mesa: Remove now-unused _mesa_add_uniform.
We had to inline it to avoid doing a double-lookup in the process of
adding assertion checks.
Eric Anholt [Tue, 24 Aug 2010 21:27:27 +0000 (14:27 -0700)]
ir_to_mesa: Convert this code to using linker.cpp's uniform locations.
Fixes: glsl-fs-uniform-array-4.
Eric Anholt [Tue, 24 Aug 2010 20:51:35 +0000 (13:51 -0700)]
glsl: Make uniform linking generate separate uniforms for struct members.
This is a step towards making the linker code usable as our uniform
setup, instead of having it wedged into ir_to_mesa.cpp.
Eric Anholt [Tue, 24 Aug 2010 23:47:09 +0000 (16:47 -0700)]
mesa: Remove the "Used" flag in gl_program_parameter.
This was in place for uniform handling, but nothing actually needs the
value now, since presence in a parameter list indicates that the
uniform was used as far as the linker was concerned.
Marek Olšák [Wed, 25 Aug 2010 18:23:29 +0000 (20:23 +0200)]
r300/compiler: emulate relative addressing with negative offsets in VS
3 more piglits, cool.
Vinson Lee [Wed, 25 Aug 2010 18:22:55 +0000 (11:22 -0700)]
nvfx: Set pointer to NULL after free.
Guard against potential use after free.
Marek Olšák [Wed, 25 Aug 2010 18:02:24 +0000 (20:02 +0200)]
r300g: fix potentially uninitialized variables in create_rs_state
It had no impact on correctness, though.
Reported by Vinson Lee.
Vinson Lee [Wed, 25 Aug 2010 17:05:32 +0000 (10:05 -0700)]
st/mesa: Remove unnecessary header.
Keith Whitwell [Wed, 25 Aug 2010 17:01:51 +0000 (18:01 +0100)]
llvmpipe: fix bad patch application
Vinson Lee [Wed, 25 Aug 2010 16:55:07 +0000 (09:55 -0700)]
llvmpipe: Remove unnecessary header.
Aras Pranckevicius [Wed, 25 Aug 2010 07:07:14 +0000 (10:07 +0300)]
glsl/mesa: fixes for MSVC
Signed-off-by: Brian Paul <brianp@vmware.com>
Kristian Høgsberg [Mon, 7 Jun 2010 00:39:19 +0000 (20:39 -0400)]
intel: Support EGL_MESA_image_drm
Kristian Høgsberg [Fri, 4 Jun 2010 01:56:21 +0000 (21:56 -0400)]
intel: Take an intel_screen pointer in intel_alloc_region_* functions
Kristian Høgsberg [Fri, 4 Jun 2010 01:36:40 +0000 (21:36 -0400)]
egl_dri2: Add support for MESA_image_drm
Kristian Høgsberg [Fri, 4 Jun 2010 18:28:59 +0000 (14:28 -0400)]
egl: Add EGL_MESA_drm_image extension
Create EGLImages from DRM buffer handles.
Keith Whitwell [Tue, 24 Aug 2010 19:04:08 +0000 (20:04 +0100)]
llvmpipe: track drawing region as a single u_rect
Keith Whitwell [Tue, 24 Aug 2010 18:58:54 +0000 (19:58 +0100)]
llvmpipe: better triangle debugging
Keith Whitwell [Fri, 20 Aug 2010 15:18:23 +0000 (16:18 +0100)]
llvmpipe: cull zero-area triangles early
Keith Whitwell [Fri, 20 Aug 2010 14:45:25 +0000 (15:45 +0100)]
llvmpipe: more rasterization counters
Keith Whitwell [Fri, 20 Aug 2010 14:25:27 +0000 (15:25 +0100)]
llvmpipe: move some fence functions into lp_screen.c
Keith Whitwell [Fri, 20 Aug 2010 14:15:36 +0000 (15:15 +0100)]
llvmpipe: wake all threads waiting on a fence
Keith Whitwell [Fri, 20 Aug 2010 14:14:19 +0000 (15:14 +0100)]
llvmpipe: fence debugging, add llvmpipe_finish
Keith Whitwell [Fri, 20 Aug 2010 13:51:57 +0000 (14:51 +0100)]
tgsi: helper for dumping tokens as hex
Keith Whitwell [Fri, 20 Aug 2010 14:52:58 +0000 (15:52 +0100)]
draw: specialized cliptesting routines
Keith Whitwell [Fri, 20 Aug 2010 10:40:26 +0000 (11:40 +0100)]
util: add rectangle helpers to u_rect.h
This begins a process of repurposing this file. The existing usage is
as a header file for some software blit fallbacks, which should be
moved to a more appropriately named header.
Keith Whitwell [Fri, 20 Aug 2010 10:38:33 +0000 (11:38 +0100)]
gallium/docs: notes on scissor state
Keith Whitwell [Fri, 20 Aug 2010 10:36:53 +0000 (11:36 +0100)]
llvmpipe: remove dead code
Chia-I Wu [Sat, 7 Aug 2010 13:08:23 +0000 (21:08 +0800)]
draw: Remove UNDEFINED_VERTEX_ID checks in emit pathes.
UNDEFINED_VERTEX_ID is used by draw_pipe_vbuf to decide whether a vertex
has been emitted or not. The non-pipeline pathes do not use it (they
tell the frontend the max vertex count when prepare() is called).
Chia-I Wu [Wed, 25 Aug 2010 07:11:03 +0000 (15:11 +0800)]
gallium: Use draw_set_index_buffer and others.
Update all drivers to use draw_set_index_buffer,
draw_set_mapped_index_buffer, and draw_vbo. Remove
draw_set_mapped_element_buffer and draw_set_mapped_element_buffer_range.
Chia-I Wu [Sun, 1 Aug 2010 06:27:56 +0000 (14:27 +0800)]
svga: Remove redundant svga_draw_range_elements.
That is, implement draw_vbo directly. As a result,
svga_swtnl_draw_range_elements is also replaced by svga_swtnl_draw_vbo.
This commit should not have any functional change.
Chia-I Wu [Wed, 25 Aug 2010 06:02:12 +0000 (14:02 +0800)]
draw: Add draw_set_index_buffer and others.
This commit adds draw_set_index_buffer, draw_set_mapped_index_buffer,
and draw_vbo. The idea behind the new functions is that an index buffer
should be a state.
draw_arrays and draw_set_mapped_element_buffer are preserved, but the
latter will be removed soon.
Vinson Lee [Wed, 25 Aug 2010 07:52:34 +0000 (00:52 -0700)]
nvfx: Clean up header file inclusion in nvfx_screen.h.
Remove nvfx_context.h.
Include p_compiler.h for INLINE symbol.
Fixes nvfx_context.h -> nvfx_screen.h -> nvfx_context.h include recursion.