static void
radeon_uvd_enc_ctx(struct radeon_uvd_encoder *enc)
{
- struct si_screen *rscreen = (struct si_screen *) enc->screen;
+ struct si_screen *sscreen = (struct si_screen *) enc->screen;
enc->enc_pic.ctx_buf.swizzle_mode = 0;
- if (rscreen->info.chip_class < GFX9) {
+ if (sscreen->info.chip_class < GFX9) {
enc->enc_pic.ctx_buf.rec_luma_pitch =
(enc->luma->u.legacy.level[0].nblk_x * enc->luma->bpe);
enc->enc_pic.ctx_buf.rec_chroma_pitch =
static void
radeon_uvd_enc_encode_params_hevc(struct radeon_uvd_encoder *enc)
{
- struct si_screen *rscreen = (struct si_screen *) enc->screen;
+ struct si_screen *sscreen = (struct si_screen *) enc->screen;
switch (enc->enc_pic.picture_type) {
case PIPE_H265_ENC_PICTURE_TYPE_I:
case PIPE_H265_ENC_PICTURE_TYPE_IDR:
}
enc->enc_pic.enc_params.allowed_max_bitstream_size = enc->bs_size;
- if (rscreen->info.chip_class < GFX9) {
+ if (sscreen->info.chip_class < GFX9) {
enc->enc_pic.enc_params.input_pic_luma_pitch =
(enc->luma->u.legacy.level[0].nblk_x * enc->luma->bpe);
enc->enc_pic.enc_params.input_pic_chroma_pitch =
RADEON_ENC_CS(enc->enc_pic.enc_params.pic_type);
RADEON_ENC_CS(enc->enc_pic.enc_params.allowed_max_bitstream_size);
- if (rscreen->info.chip_class < GFX9) {
+ if (sscreen->info.chip_class < GFX9) {
RADEON_ENC_READ(enc->handle, RADEON_DOMAIN_VRAM,
enc->luma->u.legacy.level[0].offset);
RADEON_ENC_READ(enc->handle, RADEON_DOMAIN_VRAM,
#include "si_build_pm4.h"
#include "si_compute.h"
-#define COMPUTE_DBG(rscreen, fmt, args...) \
+#define COMPUTE_DBG(sscreen, fmt, args...) \
do { \
- if ((rscreen->debug_flags & DBG(COMPUTE))) fprintf(stderr, fmt, ##args); \
+ if ((sscreen->debug_flags & DBG(COMPUTE))) fprintf(stderr, fmt, ##args); \
} while (0);
struct dispatch_packet {
}
}
-#define BUSY_INDEX(rscreen, field) (&rscreen->mmio_counters.named.field.busy - \
- rscreen->mmio_counters.array)
+#define BUSY_INDEX(sscreen, field) (&sscreen->mmio_counters.named.field.busy - \
+ sscreen->mmio_counters.array)
static unsigned busy_index_from_type(struct si_screen *sscreen,
unsigned type)
* context 1 & 2 read garbage, because DCC is disabled, yet there are
* compressed tiled
*
- * \param sctx the current context if you have one, or rscreen->aux_context
+ * \param sctx the current context if you have one, or sscreen->aux_context
* if you don't.
*/
bool si_texture_disable_dcc(struct si_context *sctx,