| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
| |
We always need to do PBO validation, so do that in core Mesa before calling driv
er routine.
cherry-picked from Mesa/master.
|
|
|
|
|
|
| |
At this time there are no optimizations for directly blitting between
buffer objects and surfaces (always go through mappings).
glean pbo test passes now
|
|
|
|
|
| |
Also, glBitmap now re-uses the vertex buffer to avoid frequent allocations/
deallocations. And, use u_simple_shaders utility code.
|
|
|
|
|
| |
This provides better information about which images in texture object have changed.
Also, call texture_update() from more places previously missed.
|
|
|
|
|
|
|
| |
(blit, gen-mipmaps, quad-clear, etc)
Also, additional cso_set_*() functions for viewport, framebuffer, blend color,
etc. state.
|
|
|
|
|
|
|
|
|
|
| |
Use the code in cso_context.c rather than st_cache.c.
Basically, binding of state objects now goes through the CSO module.
But Vertex/fragment shaders go through pipe->bind_fs/vs_state() since they're
not cached by the CSO module at this time.
Also, update softpipe driver to handle NULL state objects in various places.
This happens during context destruction. May need to update other drivers...
|
|
|
|
|
| |
Bind all the samplers/textures at once rather than piecemeal.
This is easier for drivers to understand.
|
|
|
|
|
| |
This is a better fix for the previous check-in.
Fixes texadd.c conform test, and probably other bugs.
|
| |
|
|
|
|
|
| |
If the src buffer's format isn't supported as a texture format, find a different
texture format.
|
| |
|
|
|
|
| |
These functions are now per-screen, not per-context.
|
| |
|
|
|
|
|
| |
These are now per-screen functions, not per-context.
State tracker updated, code in drivers and p_context.h disabled.
|
| |
|
|
|
|
|
|
|
|
| |
Calling glTexSubImage() or glTexImage() to replace texture data didn't
reliably cause pipe->set_sampler_texture() to get called so drivers didn't
always get notified of new texture data.
The st_texture_object->pt pointer doesn't always indicate changed data so
added a dirtyData field.
|
|
|
|
|
|
|
|
|
| |
Update the Makefiles and includes for the new paths.
Note that there hasn't been no separation of the Makefiles yet, and make is
jumping all over the place. That will be taken care shortly. But for now, make
should work. It was tested with linux and linux-dri. Linux-cell and linux-llvm
might require some minor tweaks.
|
|
|
|
| |
Fixes gears being upside down on the box in demos/gearbox.
|
| |
|
| |
|
|
|
|
|
|
| |
system of vertices
Also, export st_make_passthrough_vertex_shader() from st_cb_drawpixels.c
|
|
|
|
|
|
|
| |
The state tracker will call pipe->get_paramf(PIPE_CAP_BITMAP_TEXCOORD_BIAS)
to get a bias factor for adjusting the texcoords used in bitmap/drawpixels.
This allows us to compensate for small differences in rasterization from
one device to another.
|
|
|
|
| |
now.
|
| |
|
|
|
|
|
|
|
|
| |
The CSO returned by pipe->create_vs_state() can't be passed to the
private draw module. That was causing glRasterPos to blow up.
Add a 'draw_shader' field to st_vertex_program for use with the private
draw module.
Change st_context->state.vs type from cso_vertex_shader to st_vertex_program.
|
|
|
|
|
|
|
| |
pipe_get/put_tile_rgba() now use pipe->get/put_tile internally.
Also simplify the <format>_get/put_tile_rgba() helper functions and clean up
some inconsitencies in them.
|
|
|
|
| |
It's now the responsibility of surface users to keep track of their mappings.
|
| |
|
| |
|
|
|
|
| |
It's state tracker specific / not really necessary anyway.
|
|
|
|
|
| |
The effect of this mapping can be acheived by the state tracker and
setting up the pipe texture state pointers to incorporate its affects.
|
|
|
|
|
|
| |
surface, etc.
Additional types may be added in the future.
|
|
|
|
|
| |
This makes debugging a _lot_ easier.
In gdb, "print format" used to display 613570600, now you see PIPE_FORMAT_A8R8G8B8_UNORM.
|
| |
|
|
|
|
|
| |
Directly use struct pipe_buffer_handle for storage and struct pipe_surface for
(un)mapping.
|
|
|
|
| |
pipe->get_tex_surface() has to be used for access to texture image data.
|
| |
|
|
|
|
| |
Also, in st_init_limits(), clamp driver's values against Mesa's internal limits.
|
|
|
|
| |
program concatenation.
|
| |
|
| |
|
|
|
|
| |
glDrawPixels.
|
|
|
|
| |
do pixel transfer in the fragment program.
|
|
|
|
|
|
| |
Basic code for PixelTranslfer ops and glDrawPixels works now.
A pixel transfer program is generated and combined with the current
fragment shader.
|
| |
|
|
|
|
|
| |
Move pipe_region/surface_reference functions to pipe/p_inlines.h.
Remove #include "p_util.h" from pipe/p_context.h.
|
|
|
|
|
|
|
|
|
|
|
| |
The old supported_formats interface returned a list of formats
supported by a pipe/winsys implementation. This was reasonable
when gallium had a fixed list of predefined format.
Now things has changed and the definition of PIPE_FORMAT is
more flexible.
The new shiny is_format_supported interface gets PIPE_FORMAT
as an argument and returns a boolean whether this particular
format is supported.
|
| |
|
|
|
|
| |
This allows regions to be allocated w/out a rendering context.
|