#
✕ nick:azonenberg
#asahi-gpu · 2021-05-11 06:27
azonenbergNice
#asahi-gpu · 2021-05-11 06:17
azonenbergmore like just causing lockups and panics by scribbling all over mmio regions
#asahi-gpu · 2021-05-11 06:17
azonenbergand i wasn't talking about breaking hardware
#asahi-gpu · 2021-05-10 18:35
azonenbergYou're even explicitly allowed to use your findings to inform the design of a new chip as long as you aren't making a verbatim copy of the mask layout, or infringing on patents
#asahi-gpu · 2021-05-10 18:35
azonenbergso it's less gray than anything software related
#asahi-gpu · 2021-05-10 18:34
azonenberginterestingly enough, under US law semiconductor RE is explicitly protected and legal
#asahi-gpu · 2021-05-10 18:34
azonenbergand my solution was to decap the chip and trace out the circuits :p
#asahi-gpu · 2021-05-10 18:34
azonenbergthe last time i was faced with such a problem it was a xilinx fpga bitstream
#asahi-gpu · 2021-05-10 18:33
azonenbergwatching memory accesses via jtag or something while calling various APIs?
#asahi-gpu · 2021-05-10 18:33
azonenbergor is dynamic analysis fair game?
#asahi-gpu · 2021-05-10 18:32
azonenbergbut judging by the topic that's not the case
#asahi-gpu · 2021-05-10 18:32
azonenbergi assumed most of this kind of stuff had to be done by finding someone in a suitably friendly jurisdiction to reverse the relevant tidbits then write a clean-room spec
#asahi-gpu · 2021-05-10 18:31
azonenbergpoking registers at random seems likely to end badly and not tell you very much
#asahi-gpu · 2021-05-10 18:31
azonenbergOut of curiosity if you're not reversing any apple driver code or decapping the chip, how are you figuring out anything about the register interface?
#asahi-gpu · 2021-05-10 10:10
azonenberglong term a community opengl 4.x implementation that runs under osx would be nice :p
#asahi-gpu · 2021-05-10 10:10
azonenbergHence being interested in potential for it to work on M1 at least under linux
#asahi-gpu · 2021-05-10 10:10
azonenbergAnyway, so right now it won't run on any apple platform unless it's an x86 that you dual boot linux on
#asahi-gpu · 2021-05-10 10:05
azonenbergsignal sources (channels or imported files), sinks (displayed plots), and processing blocks between them in an arbitrary DAG
#asahi-gpu · 2021-05-10 10:05
azonenbergglscopeclient works a lot like gnuradio or VTK/ITK
#asahi-gpu · 2021-05-10 10:05
azonenbergbut it's just another DSP block you can put in the pipeline
#asahi-gpu · 2021-05-10 10:04
azonenbergand then render the upsampled waveform with the shader
#asahi-gpu · 2021-05-10 10:04
azonenbergNot in the shader. there's a sinc filter you can apply to a waveform with arbitrary upsample rate if you want it
#asahi-gpu · 2021-05-10 10:00
azonenbergi integrate in shared memory using a couple of threads, then splat out to global memory at the very end since that's slow
#asahi-gpu · 2021-05-10 10:00
azonenbergfor y=min to max waveform[x][y] += alpha
#asahi-gpu · 2021-05-10 10:00
azonenbergfind min/max Y value, interpolating if the segment from that sample to the previous/next crosses outside the pixel
#asahi-gpu · 2021-05-10 09:59
azonenbergwithin each thread: loop over all samples whose timestamp is in that pixel
#asahi-gpu · 2021-05-10 09:59
azonenbergspawn one compute thread for each pixel along the x axis
#asahi-gpu · 2021-05-10 09:59
azonenbergThe waveform rendering itself is basically
#asahi-gpu · 2021-05-10 09:59
azonenbergthird is Cairo again for axis labels, protocol decode annotations, and cursors
#asahi-gpu · 2021-05-10 09:58
azonenbergsecond is the compute shader generated waveform
#asahi-gpu · 2021-05-10 09:58
azonenbergFirst one is Cairo for the grid, background gradient, etc
#asahi-gpu · 2021-05-10 09:58
azonenbergall with a single texture and very simple shader
#asahi-gpu · 2021-05-10 09:58
azonenbergThe glscopeclient renderer displays a total of three fullscreen "quads" of two triangles per render pass
#asahi-gpu · 2021-05-10 09:55
azonenbergThe output is a monochrome fp32 texture that i then splat onto a full-viewport pair of triangles and use a fragment shader to tone map to colors
#asahi-gpu · 2021-05-10 09:54
azonenbergnamely that points are sorted in strict left to right order and in many cases at regular intervals (I have optimizations i can ifdef for that to build two different versions of the shader)
#asahi-gpu · 2021-05-10 09:54
azonenbergthe glscopeclient renderer is basically a software rasterizer in compute shaders that takes advantage of the specialized characteristics of waveform data
#asahi-gpu · 2021-05-10 09:53
azonenbergright now that's not possible
#asahi-gpu · 2021-05-10 09:52
azonenbergNot an immediate priority but i have a friend getting a M1 mac who is interested in using glscopeclient on it
#asahi-gpu · 2021-05-10 09:52
azonenbergWondering what the status of OpenGL is. Specifically how plausible it is to get GL_ARB_compute_shader in mesa working on the M1 GPU
#asahi-gpu · 2021-05-10 09:52
azonenbergo/