/third_party/mesa3d/src/gallium/drivers/radeonsi/ |
H A D | si_state_msaa.c | 125 const uint32_t *sample_locs; in si_get_sample_position() local 130 sample_locs = &sample_locs_1x; in si_get_sample_position() 133 sample_locs = &sample_locs_2x; in si_get_sample_position() 136 sample_locs = &sample_locs_4x; in si_get_sample_position() 139 sample_locs = sample_locs_8x; in si_get_sample_position() 142 sample_locs = sample_locs_16x; in si_get_sample_position() 146 out_value[0] = (GET_SX(sample_locs, sample_index) + 8) / 16.0f; in si_get_sample_position() 147 out_value[1] = (GET_SY(sample_locs, sample_index) + 8) / 16.0f; in si_get_sample_position() 151 uint32_t sample_locs) in si_emit_max_4_sample_locs() 157 radeon_set_context_reg(R_028BF8_PA_SC_AA_SAMPLE_LOCS_PIXEL_X0Y0_0, sample_locs); in si_emit_max_4_sample_locs() 150 si_emit_max_4_sample_locs(struct radeon_cmdbuf *cs, uint64_t centroid_priority, uint32_t sample_locs) si_emit_max_4_sample_locs() argument 164 si_emit_max_16_sample_locs(struct radeon_cmdbuf *cs, uint64_t centroid_priority, const uint32_t *sample_locs, unsigned num_samples) si_emit_max_16_sample_locs() argument [all...] |
/third_party/mesa3d/src/amd/vulkan/ |
H A D | radv_meta_decompress.c | 465 struct radv_sample_locations_state *sample_locs, enum radv_depth_op op) in radv_process_depth_stencil() 480 if (sample_locs) { in radv_process_depth_stencil() 489 .sampleLocationsPerPixel = sample_locs->per_pixel, in radv_process_depth_stencil() 490 .sampleLocationGridSize = sample_locs->grid_size, in radv_process_depth_stencil() 491 .sampleLocationsCount = sample_locs->count, in radv_process_depth_stencil() 492 .pSampleLocations = sample_locs->locations, in radv_process_depth_stencil() 639 struct radv_sample_locations_state *sample_locs) in radv_expand_depth_stencil() 647 radv_process_depth_stencil(cmd_buffer, image, subresourceRange, sample_locs, DEPTH_DECOMPRESS); in radv_expand_depth_stencil() 656 struct radv_sample_locations_state *sample_locs) in radv_resummarize_depth_stencil() 664 radv_process_depth_stencil(cmd_buffer, image, subresourceRange, sample_locs, DEPTH_RESUMMARIZ in radv_resummarize_depth_stencil() 463 radv_process_depth_stencil(struct radv_cmd_buffer *cmd_buffer, struct radv_image *image, const VkImageSubresourceRange *subresourceRange, struct radv_sample_locations_state *sample_locs, enum radv_depth_op op) radv_process_depth_stencil() argument 637 radv_expand_depth_stencil(struct radv_cmd_buffer *cmd_buffer, struct radv_image *image, const VkImageSubresourceRange *subresourceRange, struct radv_sample_locations_state *sample_locs) radv_expand_depth_stencil() argument 654 radv_resummarize_depth_stencil(struct radv_cmd_buffer *cmd_buffer, struct radv_image *image, const VkImageSubresourceRange *subresourceRange, struct radv_sample_locations_state *sample_locs) radv_resummarize_depth_stencil() argument [all...] |
H A D | radv_meta_resolve.c | 842 struct radv_sample_locations_state *sample_locs = in radv_decompress_resolve_src() local 847 .sampleLocationsPerPixel = sample_locs->per_pixel, in radv_decompress_resolve_src() 848 .sampleLocationGridSize = sample_locs->grid_size, in radv_decompress_resolve_src() 849 .sampleLocationsCount = sample_locs->count, in radv_decompress_resolve_src() 850 .pSampleLocations = sample_locs->locations, in radv_decompress_resolve_src()
|
H A D | radv_meta.h | 183 struct radv_sample_locations_state *sample_locs); 186 struct radv_sample_locations_state *sample_locs);
|
H A D | si_cmd_buffer.c | 1943 const uint32_t *sample_locs; in radv_get_sample_position() local 1948 sample_locs = &sample_locs_1x; in radv_get_sample_position() 1951 sample_locs = &sample_locs_2x; in radv_get_sample_position() 1954 sample_locs = &sample_locs_4x; in radv_get_sample_position() 1957 sample_locs = sample_locs_8x; in radv_get_sample_position() 1961 out_value[0] = (GET_SX(sample_locs, sample_index) + 8) / 16.0f; in radv_get_sample_position() 1962 out_value[1] = (GET_SY(sample_locs, sample_index) + 8) / 16.0f; in radv_get_sample_position()
|
H A D | radv_cmd_buffer.c | 62 struct radv_sample_locations_state *sample_locs); 1034 VkOffset2D *sample_locs) in radv_convert_user_sample_locs() 1054 sample_locs[i].x = CLAMP(scaled_pos_x, -8, 7); in radv_convert_user_sample_locs() 1055 sample_locs[i].y = CLAMP(scaled_pos_y, -8, 7); in radv_convert_user_sample_locs() 1064 radv_compute_sample_locs_pixel(uint32_t num_samples, VkOffset2D *sample_locs, in radv_compute_sample_locs_pixel() argument 1070 int32_t pos_x = sample_locs[i].x; in radv_compute_sample_locs_pixel() 1071 int32_t pos_y = sample_locs[i].y; in radv_compute_sample_locs_pixel() 1086 radv_compute_centroid_priority(struct radv_cmd_buffer *cmd_buffer, VkOffset2D *sample_locs, in radv_compute_centroid_priority() argument 1096 distances[i] = (sample_locs[i].x * sample_locs[ in radv_compute_centroid_priority() 1033 radv_convert_user_sample_locs(struct radv_sample_locations_state *state, uint32_t x, uint32_t y, VkOffset2D *sample_locs) radv_convert_user_sample_locs() argument 1130 VkOffset2D sample_locs[4][8]; /* 8 is the max. sample count supported */ radv_emit_sample_locations() local 4608 struct radv_sample_locations_state *sample_locs; radv_handle_subpass_image_transition() local 4683 const struct VkRenderPassSampleLocationsBeginInfoEXT *sample_locs = radv_cmd_state_setup_sample_locations() local 9261 radv_handle_depth_image_transition(struct radv_cmd_buffer *cmd_buffer, struct radv_image *image, VkImageLayout src_layout, bool src_render_loop, VkImageLayout dst_layout, bool dst_render_loop, unsigned src_queue_mask, unsigned dst_queue_mask, const VkImageSubresourceRange *range, struct radv_sample_locations_state *sample_locs) radv_handle_depth_image_transition() argument 9534 radv_handle_image_transition(struct radv_cmd_buffer *cmd_buffer, struct radv_image *image, VkImageLayout src_layout, bool src_render_loop, VkImageLayout dst_layout, bool dst_render_loop, uint32_t src_family_index, uint32_t dst_family_index, const VkImageSubresourceRange *range, struct radv_sample_locations_state *sample_locs) radv_handle_image_transition() argument [all...] |
H A D | radv_private.h | 2020 VkSampleLocationEXT sample_locs[MAX_SAMPLE_LOCATIONS];
|
H A D | radv_pipeline.c | 1766 info.sample_locs[i] = pSampleLocationsInfo->pSampleLocations[i]; in radv_pipeline_init_multisample_info() 2103 typed_memcpy(&dynamic->sample_location.locations[0], info->ms.sample_locs, in radv_pipeline_init_dynamic_state()
|