vk/compiler: Set the binding table texture_start
authorJason Ekstrand <jason.ekstrand@intel.com>
Thu, 14 May 2015 05:12:01 +0000 (22:12 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Thu, 14 May 2015 05:23:30 +0000 (22:23 -0700)
This is by no means a complete solution to the binding table problems.
However, it does make texturing actually work.  Before, we were texturing
from the render target since they were both starting at 0.

src/vulkan/compiler.cpp

index bf3262f..d843d03 100644 (file)
@@ -70,6 +70,8 @@ set_binding_table_layout(struct brw_stage_prog_data *prog_data,
    else
       bias = 0;
 
+   prog_data->binding_table.texture_start = bias;
+
    count = pipeline->layout->stage[stage].surface_count;
    entries = pipeline->layout->stage[stage].surface_entries;