<div dir="ltr"><div><div><span style="font-family:georgia,serif">Hi,<br></span></div><span style="font-family:georgia,serif">I am currently working on implementing the extension </span><b><span style="font-family:georgia,serif">GL_ARB_shader_atomic_counters</span></b><span style="font-family:georgia,serif">. I have a few questions.<br><br></span></div><div><span style="font-family:georgia,serif">1. What does CSO and cso_context for? Why do we have to bind with it?<br><br></span></div><div><span style="font-family:georgia,serif">2. There is a file called st_atom_constbuf.c/.h in mesa/state_tracker. As counter buffers are different from constant buffers, is it ok to create a new file say, st_atom_countbuf.c/.h?<br><br></span></div><div><span style="font-family:georgia,serif">3. Counter buffers dont do "upload_data". But, they take offsets. Do I have to create a new cso api say <span class="">cso_set_counter_buffer(**) to upload the data or can use the cso_st_constant_buffer interface with some of the variables set to NULL?<br><br></span></span></div><div><span style="font-family:georgia,serif"><span class="">4. The st_context has struct state.constants this data type takes void pointer and size which are specific to constant buffers. Do we have to create something similar to that or can we ignore it (no pointer and size are needed for counters)?<br></span></span></div><span style="font-family:georgia,serif"></span><br><div><div><div>-- <br><div class="gmail_signature"><div dir="ltr"><div><div><font style="font-family:trebuchet ms,sans-serif">Regards,<br></font></div><font style="font-family:trebuchet ms,sans-serif"><b style="background-color:rgb(255,255,255);color:rgb(0,0,153)">Aditya Atluri,<br></b></font></div><div><font style="font-family:trebuchet ms,sans-serif"><b style="background-color:rgb(255,255,255);color:rgb(0,0,153)">USA.<br></b></font></div><font style="font-family:trebuchet ms,sans-serif"><b style="background-color:rgb(255,255,255);color:rgb(0,0,153)"></b><span style="background-color:rgb(255,255,255);color:rgb(0,0,153)"></span></font><br></div></div>
</div></div></div></div>