search for: uniform_buffer_base

Displaying 1 result from an estimated 1 matches for "uniform_buffer_base".

2013 Jul 23
1
[Bug 67215] New: UBO access seems to mask address on nouveau
...ndering. I think the mask is because of 16bit indices for uniform locations. This is valid for uniform block offsets, but not for uniform buffer offsets. eg: u16 uniform_block_offset_per_variable; // hard coded in shader u32 uniform_buffer_offset_per_uniform_block; // set by glBindBufferRange u8* uniform_buffer_base; // location of this uniform buffer // The way I think it's done: u8* fetched_location = uniform_buffer_base + u16(uniform_buffer_offset_per_uniform_block + uniform_block_offset_per_variable); // The correct way: u8* fetched_location = uniform_buffer_base + uniform_buffer_offset_per_uniform_b...