50f7e75f9e945cfbb2ae868cc961a2205a0b6e73 |
|
23-Apr-2012 |
Marek Olšák <maraeo@gmail.com> |
mesa: move gl_client_array*[] from vbo_draw_func into gl_context In the future we'd like to treat vertex arrays as a state and not as a parameter to the draw function. This is the first step towards that goal. Part of the goal is to avoid array re-validation for every draw call. This commit adds: const struct gl_client_array **gl_context::Array::_DrawArrays. The pointer is changed in: * vbo_draw_method * vbo_rebase_prims - unused by gallium * vbo_split_prims - unused by gallium * st_RasterPos Reviewed-by: Brian Paul <brianp@vmware.com>
/external/mesa3d/src/mesa/tnl/t_draw.c
|
42d4972bf0b147b0241c2be7e6579fd64cf2c216 |
|
31-Dec-2011 |
Yuanhan Liu <yuanhan.liu@linux.intel.com> |
vbo: introduce vbo_get_minmax_indices function Introduce vbo_get_minmax_indices() function to handle the min/max index computation for nr_prims(>= 1). The old code just compute the first prim's min/max index; this would results an error rendering if user called functions like glMultiDrawElements(). This patch servers as fixing this issue. As when nr_prims = 1, we can pass 1 to paramter nr_prims, thus I made vbo_get_minmax_index() static. v2: per Roland's suggestion, put the indices address compuation into vbo_get_minmax_index() instead. Also do comination if possible to reduce map/unmap count v3: per Brian's suggestion, use a pointer for start_prim to avoid structure copy per loop. Signed-off-by: Yuanhan Liu <yuanhan.liu@linux.intel.com> Reviewed-by: Roland Scheidegger <sroland@vmware.com> Reviewed-by: Brian Paul <brianp@vmware.com>
/external/mesa3d/src/mesa/tnl/t_draw.c
|
efa1fac2158c9146b87f0d4340a864661721de21 |
|
28-Dec-2011 |
Yuanhan Liu <yuanhan.liu@linux.intel.com> |
vbo: introduce vbo_sizeof_ib_type() function introduce vbo_sizeof_ib_type() function to return the index data type size. I see some place use switch(ib->type) to get the index data type, which is sort of duplicate. Signed-off-by: Yuanhan Liu <yuanhan.liu@linux.intel.com> Reviewed-by: Brian Paul <brianp@vmware.com> Reviewed-by: Eric Anholt <eric@anholt.net>
/external/mesa3d/src/mesa/tnl/t_draw.c
|
14bb957b996dcc5392b8fa589bd3ffa5c55cb6b4 |
|
09-Dec-2011 |
Marek Olšák <maraeo@gmail.com> |
mesa: implement DrawTransformFeedback from ARB_transform_feedback2 It's like DrawArrays, but the count is taken from a transform feedback object. This removes DrawTransformFeedback from dd_function_table and adds the same function to GLvertexformat (with the function parameters matching GL). The vbo_draw_func callback has a new parameter "struct gl_transform_feedback_object *tfb_vertcount". The rest of the code just validates states and forwards the transform feedback object into vbo_draw_func.
/external/mesa3d/src/mesa/tnl/t_draw.c
|
5d9e242c3e28046e9c8ae1760533f92841d0cfaf |
|
30-Aug-2011 |
Brian Paul <brianp@vmware.com> |
tnl: fix regression in bind_indices() Commit 2ea1ff38164d95f8291ef2e5dfe2cb13936a60f2 caused the regression. Fixes https://bugs.freedesktop.org/show_bug.cgi?id=40413
/external/mesa3d/src/mesa/tnl/t_draw.c
|
788d9bf12174ce59584f4ed768a24a9626f5d9b7 |
|
30-Aug-2011 |
Brian Paul <brianp@vmware.com> |
tnl: add const qualifier to silence warning
/external/mesa3d/src/mesa/tnl/t_draw.c
|
642bbc6f596722492470c4322a9c011e1705a951 |
|
30-Aug-2011 |
Brian Paul <brianp@vmware.com> |
tnl: use buffer helper functions to improve readbility
/external/mesa3d/src/mesa/tnl/t_draw.c
|
2ea1ff38164d95f8291ef2e5dfe2cb13936a60f2 |
|
22-Aug-2011 |
Ian Romanick <ian.d.romanick@intel.com> |
tnl: Only map the necessary buffer range in bind_indices Signed-off-by: Ian Romanick <ian.d.romanick@intel.com> Reviewed-by: Brian Paul <brianp@vmware.com> Acked-by: Kenneth Graunke <kenneth@whitecape.org> Reviewed-by: Eric Anholt <eric@anholt.net>
/external/mesa3d/src/mesa/tnl/t_draw.c
|
28249bd260f4c52badf3eb61ade2744604b21bca |
|
22-Aug-2011 |
Ian Romanick <ian.d.romanick@intel.com> |
mesa: Eliminate dd_function_table::MapBuffer Replace all calls to dd_function_table::MapBuffer with appropriate calls to dd_function_table::MapBufferRange, then remove all the cruft. Signed-off-by: Ian Romanick <ian.d.romanick@intel.com> Reviewed-by: Brian Paul <brianp@vmware.com> Acked-by: Kenneth Graunke <kenneth@whitecape.org> Reviewed-by: Eric Anholt <eric@anholt.net>
/external/mesa3d/src/mesa/tnl/t_draw.c
|
12d924c5ae14a1c6a05a3dcae29b77e7668e227d |
|
22-Aug-2011 |
Ian Romanick <ian.d.romanick@intel.com> |
mesa: Remove target parameter from dd_function_table::MapBuffer No driver used that parameter, and most drivers ended up with a bunch of unused-parameter warnings because it was there. Signed-off-by: Ian Romanick <ian.d.romanick@intel.com> Reviewed-by: Brian Paul <brianp@vmware.com> Acked-by: Kenneth Graunke <kenneth@whitecape.org> Reviewed-by: Eric Anholt <eric@anholt.net>
/external/mesa3d/src/mesa/tnl/t_draw.c
|
56f0c00f125ee75caeadc1c9e8cab8a488635e5e |
|
22-Aug-2011 |
Ian Romanick <ian.d.romanick@intel.com> |
mesa: Remove target parameter from dd_function_table::UnmapBuffer No driver used that parameter, and most drivers ended up with a bunch of unused-parameter warnings because it was there. Signed-off-by: Ian Romanick <ian.d.romanick@intel.com> Reviewed-by: Brian Paul <brianp@vmware.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Reviewed-by: Eric Anholt <eric@anholt.net>
/external/mesa3d/src/mesa/tnl/t_draw.c
|
a231ac23f41a38cf9bde80bab4cb6aa8821d4895 |
|
16-Feb-2011 |
Chad Versace <chad.versace@intel.com> |
tnl: Add support for datatype GL_FIXED in vertex arrays Before populating the vertex buffer attribute pointer (VB->AttribPtr[]), convert vertex data in GL_FIXED format to GL_FLOAT. Fixes bug: http://bugs.freedesktop.org/show_bug.cgi?id=34047 NOTE: This is a candidate for the 7.9 and 7.10 branches.
/external/mesa3d/src/mesa/tnl/t_draw.c
|
6179f7e38e78eea6fb06180fca3c8b1e78d25f2b |
|
17-Jan-2011 |
Brian Paul <brianp@vmware.com> |
tnl: assert that num_instances > 0
/external/mesa3d/src/mesa/tnl/t_draw.c
|
a63486ac680acc0bfb895037aca130a457caa01a |
|
10-Dec-2010 |
Brian Paul <brianp@vmware.com> |
tnl: implement instanced drawing
/external/mesa3d/src/mesa/tnl/t_draw.c
|
f9995b30756140724f41daf963fa06167912be7f |
|
12-Oct-2010 |
Kristian Høgsberg <krh@bitplanet.net> |
Drop GLcontext typedef and use struct gl_context instead
/external/mesa3d/src/mesa/tnl/t_draw.c
|
298be2b028263b2c343a707662c6fbfa18293cb2 |
|
19-Feb-2010 |
Kristian Høgsberg <krh@bitplanet.net> |
Replace the _mesa_*printf() wrappers with the plain libc versions
/external/mesa3d/src/mesa/tnl/t_draw.c
|
32f2fd1c5d6088692551c80352b7d6fa35b0cd09 |
|
19-Feb-2010 |
Kristian Høgsberg <krh@bitplanet.net> |
Replace _mesa_malloc, _mesa_calloc and _mesa_free with plain libc versions
/external/mesa3d/src/mesa/tnl/t_draw.c
|
b30898f4ab533085d97a33638ad0a1cf9ddb1d67 |
|
14-Feb-2010 |
Karl Schultz <karl.w.schultz@gmail.com> |
mesa: Fix compiler warnings Add explicit casts, fix constant types, fix variable types. Fixes about 340 warnings in MSFT Visual Studio.
/external/mesa3d/src/mesa/tnl/t_draw.c
|
6fea2be7959620fe0a1b28c275a7d960005c8b09 |
|
29-Jan-2010 |
Brian Paul <brianp@vmware.com> |
tnl: check that state is validated before drawing (cherry picked from commit 9fd3c74724e557bc6ecc851d8552615ab3becfe2) Conflicts: src/mesa/tnl/t_draw.c
/external/mesa3d/src/mesa/tnl/t_draw.c
|
28bd4a1d81c200d7eff4545de946dd943d853b08 |
|
28-Jan-2010 |
Brian Paul <brianp@vmware.com> |
tnl: fix double->float and int/uint conversion warnings Reported by Karl Schultz.
/external/mesa3d/src/mesa/tnl/t_draw.c
|
cfe884e2030466df673881da8e830c300dda40db |
|
18-Jan-2010 |
Dave Airlie <airlied@linux.ie> |
mesa: add core support for ARB_half_float_vertex. Adds the extension to the list + support to the APIs. also add t_draw.c support to convert for sw rast. Signed-off-by: Dave Airlie <airlied@redhat.com>
/external/mesa3d/src/mesa/tnl/t_draw.c
|
b01ffb12ed82dcf435b186e2aff35e344a8a6ebe |
|
14-Jan-2010 |
Jakob Bornecrantz <jakob@vmware.com> |
Merge branch 'mesa_7_7_branch' Conflicts: src/gallium/auxiliary/pipebuffer/pb_buffer_fenced.c src/gallium/auxiliary/util/Makefile src/gallium/drivers/r300/r300_state_derived.c
|
2c7cf3f9c95098ef08966d19cd1990d3825fd9eb |
|
13-Jan-2010 |
Vinson Lee <vlee@vmware.com> |
tnl: Remove unnecessary headers from t_draw.c.
/external/mesa3d/src/mesa/tnl/t_draw.c
|
699cfaeb3cde2a329b2d79ae09c7783ed4edacfe |
|
31-Dec-2009 |
Brian Paul <brianp@vmware.com> |
tnl: add check for conditional rendering
/external/mesa3d/src/mesa/tnl/t_draw.c
|
37c79d4d765b10a79e0cf217cc1e70d3fbb7a0c5 |
|
18-Nov-2009 |
Eric Anholt <eric@anholt.net> |
tnl: Replace deprecated FogCoordPtr with AttribPtr[_TNL_ATTRIB_FOG]
/external/mesa3d/src/mesa/tnl/t_draw.c
|
0a9187801505130738ae947c69cafa8a1dd118d1 |
|
18-Nov-2009 |
Eric Anholt <eric@anholt.net> |
tnl: Replace deprecated ColorPtr[] with AttribPtr or new BackfaceColorPtr.
/external/mesa3d/src/mesa/tnl/t_draw.c
|
fc9a2970dc539b21b035ea0a770ec69822962145 |
|
18-Nov-2009 |
Eric Anholt <eric@anholt.net> |
tnl: Replace deprecated IndexPtr[] with AttribPtr[] or new BackfaceIndexPtr
/external/mesa3d/src/mesa/tnl/t_draw.c
|
165b860da6f16ef4817a4959774a57f57ba3756d |
|
18-Nov-2009 |
Eric Anholt <eric@anholt.net> |
tnl: Replace deprecated ObjPtr with AttribPtr[_TNL_ATTRIB_POS]
/external/mesa3d/src/mesa/tnl/t_draw.c
|
df582ca767a38f185f9b4c449e7ed4266c414ae2 |
|
18-Nov-2009 |
Eric Anholt <eric@anholt.net> |
tnl: Replace deprecated TexCoordPtr with AttribPtr[_TNL_ATTRIB_TEX*]
/external/mesa3d/src/mesa/tnl/t_draw.c
|
22bcb59a95ec833cfd73b300376c918eb6a658f2 |
|
17-Nov-2009 |
Eric Anholt <eric@anholt.net> |
tnl: Replace NormalPtr with AttribPtr[_TNL_ATTRIB_NORMAL]
/external/mesa3d/src/mesa/tnl/t_draw.c
|
92d7ed8a20d4a018ce5324e6537ae7b478b9e5bf |
|
27-Aug-2009 |
Eric Anholt <eric@anholt.net> |
mesa: Add support for ARB_draw_elements_base_vertex.
/external/mesa3d/src/mesa/tnl/t_draw.c
|
2708ddfb06a36d8568e2aa130bf1f7d551fcd309 |
|
11-Aug-2009 |
Eric Anholt <eric@anholt.net> |
vbo: Avoid extra validation of DrawElements. This saves mapping the index buffer to get a bounds on the indices that drivers just drop on the floor in the VBO case (cache win), saves a bonus walk of the indices in the CheckArrayBounds case, and other miscellaneous validation. On intel it's a particularly a large win (50-100% in my app) because even though we let the indices stay in both CPU and GPU caches, we still end up waiting for the GPU to be done with the buffer before reading from it. Drivers that want the min/max_index fields must now check index_bounds_valid and use vbo_get_minmax_index before using them.
/external/mesa3d/src/mesa/tnl/t_draw.c
|
0791fdff6fe87cf9a29ddf4a716f1881c367c7de |
|
23-Jan-2009 |
Brian Paul <brianp@vmware.com> |
mesa: update tnl module for GL_EXT_vertex_array_bgra Add special case for GLubyte/GL_BGRA color arrays in _tnl_import_array()
/external/mesa3d/src/mesa/tnl/t_draw.c
|
bbd287103dad776d8a45c87c4e51fbc26d9b80d5 |
|
18-Sep-2008 |
Brian Paul <brian.paul@tungstengraphics.com> |
mesa: prefix a bunch of #include lines with "main/". This is another step toward removing a whole bunch of -I flags from the cc commands. Still need to address driver code...
/external/mesa3d/src/mesa/tnl/t_draw.c
|
f8ee72d98f2d23e034e90870ff6a760659a462a5 |
|
29-Sep-2007 |
Brian <brian.paul@tungstengraphics.com> |
fix VBO-split infinite loop (bug 12164)
/external/mesa3d/src/mesa/tnl/t_draw.c
|
d2d86a3f0b38716196ea2b3ffa4cbbd0420de1b3 |
|
17-Apr-2007 |
Brian <brian@yutani.localnet.net> |
In bind_inputs() set VB->EdgeFlag to NULL if it's not needed. Otherwise, the clip/interp code was finding VB->EdgeFlag to be non-null and reading/writing it when the memory may have been freed earlier in free_space(). This fixes several VTK segfaults/failures reported by Brad King @ Kitware.
/external/mesa3d/src/mesa/tnl/t_draw.c
|
893526b8a823fe1b88f2b46376155afb91c84016 |
|
30-Jan-2007 |
Keith Whitwell <keith@tungstengraphics.com> |
Use new rebase helper. Remove other rebase code.
/external/mesa3d/src/mesa/tnl/t_draw.c
|
82152a2a8e1afeb61710318e769b1379be6c02c6 |
|
15-Jan-2007 |
keithw <keithw@keithw-laptop.(none)> |
Remove debug, reenable inplace splitting.
/external/mesa3d/src/mesa/tnl/t_draw.c
|
5464cd0a60f474753abc6af047fd21b0e29b8ac4 |
|
15-Jan-2007 |
Keith Whitwell <keith@tungstengraphics.com> |
Split too-large draw commands. Use the vbo_split_ functionality to split incoming drawing command to fit within the fixed-size buffers used by software t&l module.
/external/mesa3d/src/mesa/tnl/t_draw.c
|
188a4db49c4c22429bfa7ae87d4b1a0c35bf0285 |
|
03-Nov-2006 |
Keith Whitwell <keith@tungstengraphics.com> |
Fix compiler warnings. Add missing code for translating non-GLuint elements.
/external/mesa3d/src/mesa/tnl/t_draw.c
|
7e9c3684ef45e0df8426317f28c883d16f27c031 |
|
02-Nov-2006 |
Keith Whitwell <keith@tungstengraphics.com> |
Fix type-conversion of incoming vertices. Fix mis-application of increment to pointer variable.
/external/mesa3d/src/mesa/tnl/t_draw.c
|
9827dc8bea422b940f1efcfbd1c0d76f8bbca844 |
|
02-Nov-2006 |
Keith Whitwell <keith@tungstengraphics.com> |
Respect array->Normalized flag. Import edgeflag attribute to array of GLbooleans as expected by downstream code.
/external/mesa3d/src/mesa/tnl/t_draw.c
|
c22f8a7787bd5260135a20a0c2ae8b743228497b |
|
02-Nov-2006 |
Keith Whitwell <keith@tungstengraphics.com> |
missing file
/external/mesa3d/src/mesa/tnl/t_draw.c
|