search for: uniform_block_offset_per_variable

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

2013 Jul 23
1
[Bug 67215] New: UBO access seems to mask address on nouveau
...d correctly and everything else starts at zero. My uniform buffer was 128k big and I copyed as I wanted to proove and I got a correct rendering. 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_o...