• Zebediah Figura's avatar
    wined3d: Set d3d 1-9 textures in the state as SRVs. · 5b60f464
    Zebediah Figura authored
    The idea is to reuse the existing code to handle SRVs, which simplifies the GL
    code and essentially allows the Vulkan code to work "for free" (which is to say,
    by writing this patch, rather than by adding support for flat textures to the
    Vulkan renderer.)
    
    This is a large patch; it consists the following parts:
    
    * Create identity SRVs for d3d 1-9 textures. Store those in
      state->shader_resource_view instead of in state->texture.
    
    * (Re)use wined3d_context_gl_bind_shader_resources() instead of state_sampler()
      to bind them.
    
      - Introduce code to that function to handle FFP textures.
    
      - Bind the sRGB texture if necessary in wined3d_shader_resource_view_gl_bind.
    
    * (Re)use context_gl_load_shader_resources() instead of
      context_preload_textures() to load them.
    
      - Introduce code to that function to handle FFP textures.
    
      - Load the sRGB texture if necessary.
    
      - Port the SRV/RTV feedback loop check from context_preload_textures().
    
    * Invalidate STATE_GRAPHICS_SHADER_RESOURCE_BINDING in places that now need to
      account for texture binding being guarded by that state instead of
      STATE_SAMPLER.
    
      Transitioning the remaining users of STATE_SAMPLER to
      STATE_GRAPHICS_SHADER_RESOURCE_BINDING, and removing STATE_SAMPLER, is left
      for future patches.
    5b60f464
Name
Last commit
Last update
..
Makefile.in Loading commit data...
adapter_gl.c Loading commit data...
adapter_vk.c Loading commit data...
arb_program_shader.c Loading commit data...
ati_fragment_shader.c Loading commit data...
buffer.c Loading commit data...
context.c Loading commit data...
context_gl.c Loading commit data...
context_vk.c Loading commit data...
cs.c Loading commit data...
device.c Loading commit data...
directx.c Loading commit data...
gl_compat.c Loading commit data...
glsl_shader.c Loading commit data...
nvidia_texture_shader.c Loading commit data...
palette.c Loading commit data...
query.c Loading commit data...
resource.c Loading commit data...
sampler.c Loading commit data...
shader.c Loading commit data...
shader_sm1.c Loading commit data...
shader_sm4.c Loading commit data...
shader_spirv.c Loading commit data...
state.c Loading commit data...
stateblock.c Loading commit data...
surface.c Loading commit data...
swapchain.c Loading commit data...
texture.c Loading commit data...
utils.c Loading commit data...
version.rc Loading commit data...
vertexdeclaration.c Loading commit data...
view.c Loading commit data...
wined3d.spec Loading commit data...
wined3d_gl.h Loading commit data...
wined3d_main.c Loading commit data...
wined3d_private.h Loading commit data...
wined3d_shaders.h Loading commit data...
wined3d_vk.h Loading commit data...