diff options
author | Vasily Khoruzhick <[email protected]> | 2019-11-01 19:23:57 -0700 |
---|---|---|
committer | Vasily Khoruzhick <[email protected]> | 2019-11-05 17:44:56 -0800 |
commit | 65a5b24aeea34b370cd38083ccbbd38efcac1d4e (patch) | |
tree | 070fc44b890fca8985920421c14a74a7940b191d /src/gallium/drivers/lima/lima_context.h | |
parent | 73cc2fec10574816ff968b21183bd62e77517b66 (diff) |
lima: add support for gl_PointSize
GP handles gl_PointSize similar to gl_Position, i.e. it needs
separate buffer and it has special type in varying descriptors, also
for indexed draw we need to emit special PLBU command to pass
address of gl_PointSize buffer.
Blob also clamps gl_PointSize to 1 .. 100 (as well as line width),
so let's do the same.
Reviewed-by: Andreas Baierl <[email protected]>
Signed-off-by: Vasily Khoruzhick <[email protected]>
Diffstat (limited to 'src/gallium/drivers/lima/lima_context.h')
-rw-r--r-- | src/gallium/drivers/lima/lima_context.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/gallium/drivers/lima/lima_context.h b/src/gallium/drivers/lima/lima_context.h index 3d8bf6c2b3f..7a0e7e8367f 100644 --- a/src/gallium/drivers/lima/lima_context.h +++ b/src/gallium/drivers/lima/lima_context.h @@ -81,7 +81,10 @@ struct lima_vs_shader_state { struct lima_varying_info varying[LIMA_MAX_VARYING_NUM]; int varying_stride; - int num_varying; + int num_outputs; + int num_varyings; + int gl_pos_idx; + int point_size_idx; struct lima_bo *bo; }; @@ -120,6 +123,7 @@ struct lima_context_constant_buffer { enum lima_ctx_buff { lima_ctx_buff_sh_varying, lima_ctx_buff_sh_gl_pos, + lima_ctx_buff_sh_gl_point_size, lima_ctx_buff_gp_varying_info, lima_ctx_buff_gp_attribute_info, lima_ctx_buff_gp_uniform, |